stevedlawrence opened a new pull request #143: Support dfdl:length="prefixed" URL: https://github.com/apache/incubator-daffodil/pull/143 - Add a concept of a "detached element". This is an element that has no representation in the infoset, acting only as a place to hang properties and as a temporary infoset element to parse unparse. - When parsing a prefix element, this creates a new detached element, parses the prefix length into the element, pulls out the length from the element, then uses that length for parsing the actual data. The reverse process is performed on unparse, except in the case of binary number where the lengths are predetermined by the specification. - Rename OVCRetry to SimpleTypeRetry, since this is now used to retry the prefix length unparser, which has the same behavior as output value calc. It will suspend until something figures out the prefix length, sets the simple value, and then it can resume and unparse that value. - Add many new binary related parsers/unparsers to handle prefix lengths. Text representations are all handle the same using specified length parsers/unparsers. This involved some level of refactoring to keep things somewhat clean, but not what is really needed. The binary parsers all have subtle differences which make this challenging. - Modified the property generator to resolve qnmaes. - For packed numbers, split out the length determination from the function that converts to a byte array. With prefixed lengths, we need to know how much minimum space is needed without needing to create the entire array. - This does not support the ability to nest prefix lengths. Functionally, work is complete for parsing, but on the uparsing side requires modifications to how UState is cloned. Nesting prefix lengths results in nesting suspensions, which doesn't work right now--one cannot create suspension from inside a suspension. - This does not support the ability to unparse prefix lengths when lengthUnits is characters. This is a similar issue to trying to use content/value-length functions with 'characters'. DAFFODIL-114
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
