Constructor

new()

Variables

read onlylength:Int

The length of the buffer in bytes.

Methods

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

@:has_untypedgetBytes():Bytes

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

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.

get_length():Int

Available on macro