Skip to content

Commit caf4f9f

Browse files
committed
Alignment of var data and repeating groups #65
1 parent ab512fa commit caf4f9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

v2-0-RC1/doc/03MessageStructure.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,12 @@ Example of fields with specified offsets
250250
| Symbol | 8 | 0 | 20 |
251251

252252
#### Field byte alignment
253-
As an alternative to specifying a field's offset from the start of a block, its byte alignment may be specified. If specified, the start of the first field should reside at an offset from the start of the buffer that is the next multiple of the alignment attribute. If the offset without alignment would not be a multiple of the alignment attribute, then the buffer is padded with octets to that multiple. The padding should be set to binary zeroes.
253+
As an alternative to specifying a field's offset from the start of a block, its byte alignment may be specified. If specified, the start of the a field should reside at an offset from the start of the buffer that is the next multiple of the alignment attribute. If the offset without alignment would not be a multiple of the alignment attribute, then the buffer is padded with octets to that multiple. The padding should be set to binary zeroes.
254254

255255
The alignment attribute is mutually exclusive with offset.
256256

257+
If neither offset nor alignment attributes are set, then a field is positioned at the next available octet in a buffer without padding.
258+
257259
Computation of padding and effective offset is as follows, where effective-offset is the resulting position in the buffer:
258260

259261
```

0 commit comments

Comments
 (0)