aboutsummaryrefslogtreecommitdiff
path: root/lib/binary/benchmark_test.go
AgeCommit message (Collapse)Author
2025-01-06lib/binary: implement buffer for reading/writing in BigEndianShulhan
BigEndianBuffer provides backing storage for writing (most of) Go native types into binary in big-endian order. The zero value of BigEndianBuffer is an empty buffer ready to use. The following basic types are supported for Write and Read: bool, byte, int, float, complex, and string. The slice and array are also supported as long as the slice's element type is one of basic types.