Available on all platforms
@:has_untypednew()
read onlylength:Int
The length of the buffer in bytes.
@:has_untypedadd(src:Bytes):Void
@:has_untypedaddByte(byte:Int):Void
@:has_untypedaddBytes(src:Bytes, pos:Int, len:Int):Void
addDouble(v:Float):Void
addFloat(v:Float):Void
addInt32(v:Int):Void
addInt64(v:Int64):Void
@:has_untypedaddString(v:String, ?encoding:Encoding):Void
@:has_untypedgetBytes():Bytes
Returns either a copy or a reference of the current bytes. Once called, the buffer should no longer be used.