Available on all platforms
@:keepnew()
@:keepread onlylength:Int
The length of the buffer in bytes.
@:keepadd(src:Bytes):Void
@:has_untyped@:keepaddByte(byte:Int):Void
@:keepaddBytes(src:Bytes, pos:Int, len:Int):Void
@:keepaddDouble(v:Float):Void
@:keepaddFloat(v:Float):Void
@:keepaddInt32(v:Int):Void
@:keepaddInt64(v:Int64):Void
@:keepaddString(v:String, ?encoding:Encoding):Void
@:has_untyped@:keepgetBytes():Bytes
Returns either a copy or a reference of the current bytes. Once called, the buffer should no longer be used.