summaryrefslogtreecommitdiff
path: root/lib/binary/binary.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.
2024-12-28lib/binary: implement append-only binary fileShulhan
The binary is new package that complement the standard binary package Currently it implement append-only binary that encode the data using [binary.Writer]. We call them "Apo" for short.