Releases: encodingx/binary
Releases · encodingx/binary
v1.2.2
v1.2.1
Increased user-friendliness by simplifying struct tag API in a backwards-compatible manner.
Understanding of the concept of offsets is no longer required to use the module.
Before
type RFC791InternetHeaderFormatWord0 struct { Version uint8 `bitfield:"4,28"` IHL uint8 `bitfield:"4,24"` Precedence uint8 `bitfield:"3,21"` Delay bool `bitfield:"1,20"` Throughput bool `bitfield:"1,19"` Reliability bool `bitfield:"1,18"` Reserved uint8 `bitfield:"2,16"` TotalLength uint16 `bitfield:"16,0"` }After
type RFC791InternetHeaderFormatWord0 struct { Version uint8 `bitfield:"4"` IHL uint8 `bitfield:"4"` Precedence uint8 `bitfield:"3"` Delay bool `bitfield:"1"` Throughput bool `bitfield:"1"` Reliability bool `bitfield:"1"` Reserved uint8 `bitfield:"2"` TotalLength uint16 `bitfield:"16"` }