Standard Library

v0.1.0-beta.1

ByteSequence

This represents a byte sequence. Internally, this is equivilent and interchangable with [Pointer] however the difference is that the byte sequence literal can only be a ByteSequence, not a pointer.

ByteSequences do not have as many methods as Pointers however they can be created at compile-time and therefore directly inserted in binary. For this reason, if casted to a Pointer, it is not safe to call Pointer#free()

ByteSequences are used to represent immutable C-strings. If you see a value using const char* it is better to use a ByteSequence as you cannot perform any actions with side-effects with a byte sequence.