Changes between Version 14 and Version 15 of StructuredBinaryData
- Timestamp:
- 2012-07-22T17:40:51Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StructuredBinaryData
v14 v15 210 210 Currently, a transform can only have one input. Parameters will allow a 211 211 transform to use multiple inputs: 212 `transform strings(len) = struct { .str1 <- ascii <- known_length(len); .str2 <- ascii <- known_length(len); };`. 212 {{{ 213 transform strings(len) = struct { 214 .str1 <- ascii <- known_length(len); 215 .str2 <- ascii <- known_length(len); 216 }; 217 }}} 213 218 A transform with parameters can be defined as in `transform strings(len)`, and 214 219 the parameters can be referenced inside the transform. When a transform is 215 220 used, expressions are given for the values of its parameters. 216 221 217 At first the only expressions will be parameters, as above, previously decoded 218 fields, as in `.len <- uint32le; .data <- known_length(.len);`, or integer 219 literals. 222 At first the only expressions will be parameters, as above, integer literals or previously decoded 223 fields, as in 224 {{{ 225 .len <- uint32le; 226 .data <- known_length(.len); 227 }}} 220 228 221 229 === Other ideas ===