Changes between Version 16 and Version 17 of StructuredBinaryData


Ignore:
Timestamp:
2012-08-02T06:27:29Z (12 years ago)
Author:
Vojtech Horky
Comment:

Make the source code example more visible

Legend:

Unmodified
Added
Removed
Modified
  • StructuredBinaryData

    v16 v17  
    160160
    161161Transforms can have parameters that affect how they decode data:
    162 `transform u16(little_endian) = if (little_endian) { uint16le } else { uint16be };`.
     162{{{
     163transform u16(little_endian) =
     164    if (little_endian) {
     165        uint16le
     166    } else {
     167        uint16be
     168    };
     169}}}
    163170When such a transform is used, expressions must be given to calculate its
    164171parameters. Currently, the only possible expressions are parameters given to