Crystalizer::ByteFormat
Inherits Crystalizer::Serializer / Crystalizer::Deserializer / Struct / Value / Object
Byte format, as implemented in the stdlib: https://crystal-lang.org/api/master/IO/ByteFormat.html.
Important note: bytes representation of dynamic data structures like Array and Hash have no end delimiter.
On an object, only one of it can be present as the last instance variable, otherwise they will collide with the next ones - having no delimiter to separate them.
Unions are also not supported.
Constructors
Class methods
Instance methods
Deserializes a String from reading from the io, delimited by a trailing string_delimiter.
Deserializes a String from reading from the io. String is exactly bytesize bytes with no trailing @string_delimiter.
Requires the @io to be an IO::Memory.
Deserializes a String from reading from the io, delimited by a trailing string_delimiter.
Serializes a String to bytes, written to the io, and add a trailing string_delimiter.