BinaryFormat.Group
The parameters to be considered are the following: - The binaryFormat parameter defines the binary format of the key value. - The group parameter provides details about the group of known items. - The...
BinaryFormat.Group(binaryFormat as function, group as list, optional extra as nullable function, optional lastKey as any) as function
The parameters to be considered are the following:
- The binaryFormat parameter defines the binary format of the key value.
- The group parameter provides details about the group of known items.
- The optional extra parameter allows a function to be specified that will return a binary format value for any unexpected key values encountered. If not specified, an error will be raised for unexpected key values.
- The group parameter specifies a list of item definitions, each comprising 3-5 values:
- Key value: unique identifier for the item
- Item format: binary format corresponding to the item value, enabling diverse formats for each item
- Item occurrence: BinaryOccurrence.Type value indicating how many times the item is anticipated to appear in the group. Missing required items result in an error, while optional duplicate items are treated as unexpected key values.
- Default item value (optional): Used instead of a default if it is non-null, null is the default for repeating or optional items, wh