Skip to content

Commit c1bd489

Browse files
authored
composite spec.Legth defines length of the field in bytes (#360)
1 parent 71661a6 commit c1bd489

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

field/spec.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ type Spec struct {
5050
// length of the field you're defining, e.g. Numeric, String, Binary
5151
// etc. For Hex fields, the length is defined in terms of the number of
5252
// bytes, while the value of the field is hex string.
53+
// In case of Composite field, the Length is defined in terms of the number
54+
// of bytes in the field value.
5355
Length int
5456
// Tag sets the tag specification. Only applicable to composite field
5557
// types.

0 commit comments

Comments
 (0)