Skip to content

An attempt at vaguely Erlang-like binary handling for C++

License

Notifications You must be signed in to change notification settings

attah/bytestream

Repository files navigation

Bytestream

An attempt at vaguely Erlang-like binary handling for C++

For easy, readable, construction and deconstruction of binaries - with built-in endianness handling.

Used in https://github.com/attah/harbour-seaprint for IPP and (m)DNS encoding and decoding.

(Mis-)used in https://github.com/attah/ppm2pwg for the PWG raster compression algorithm.

See tests for examples.

Codable

__attribute__((packed)) on steroids, implemented with Bytestream.

Used in https://github.com/attah/ppm2pwg for file/page headers.

Array

Wrapper for std::unique_ptr to get nicer syntax for arrays.

About

An attempt at vaguely Erlang-like binary handling for C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages