Skip to content

Releases: encodingx/binary

v1.2.2

10 Feb 02:12
Compare
Choose a tag to compare

Made package structure more logical with no known effects on function and performance.

v1.2.1

18 Dec 07:12
Compare
Choose a tag to compare

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"`
}

v1.1.1

04 Dec 03:31
Compare
Choose a tag to compare
edit README