You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2022/02/01 17:55:00 UTC

[jira] [Commented] (DAFFODIL-2639) InputSourceDataInputStream needs to support bitPos1b

    [ https://issues.apache.org/jira/browse/DAFFODIL-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17485395#comment-17485395 ] 

Dave Thompson commented on DAFFODIL-2639:
-----------------------------------------

Note to self: A test was added in to confirm delimiter behavior in commit dd9e836ba88c1598e8562d986ae6d63152693b64. Verified test executes successfully but re-verify when this ticket is resolved.

> InputSourceDataInputStream needs to support bitPos1b
> ----------------------------------------------------
>
>                 Key: DAFFODIL-2639
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2639
>             Project: Daffodil
>          Issue Type: New Feature
>          Components: Back End
>    Affects Versions: 3.2.1
>            Reporter: Mike Beckerle
>            Priority: Major
>
> It would be very useful when using Daffodil to parse a stream of data into messages or records, to be able to ask the inputSourceDataInputStream for its position between calls to parse. 
> For this to be meaningful; however, the stream must be positioned at the next bit to read in order to consume the next message. That is, any speculative reads must have been backtracked, not stored as state in Daffodil. 
> The point is to be able to output along with each message, its starting position in the input data stream, thereby discovering the boundary positions in the input stream where each of the messages/records starts, and the length (by looking at the next starting position)
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)