Constructor

new()

Variables

read onlylength:Int

The length of the buffer in bytes.

Methods

inlineadd(src:Bytes):Void

@:has_untypedinlineaddByte(byte:Int):Void

inlineaddBytes(src:Bytes, pos:Int, len:Int):Void

inlineaddString(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.