You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2022/01/29 21:52:00 UTC
[jira] [Created] (DAFFODIL-2639) InputSourceDataInputStream needs to support bitPos1b
Mike Beckerle created DAFFODIL-2639:
---------------------------------------
Summary: 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
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)