Constructor

@:keepnew()

Variables

@:keepread onlylength:Int

The length of the buffer in bytes.

Methods

@:keepadd(src:Bytes):Void

@:has_untyped@:keepaddByte(byte:Int):Void

@:keepaddBytes(src:Bytes, pos:Int, len:Int):Void

@:keepaddInt32(v:Int):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.