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

Available on cpp, java, lua, macro, js, flash, hl, neko, cs, python

Returns either a copy or a reference of the current bytes. Once called, the buffer should no longer be used.

getBytes():Bytes

Available on php

Returns either a copy or a reference of the current bytes. Once called, the buffer can no longer be used.