Bipartite circular buffer. Guarantees contiguous memory blocks for read/write.

Constructor

new(size:Int)

Variables

read onlyavailable:Int

read onlycapacity:Int

read onlyfreeSpace:Int

Methods

asInput():Input

Returns a Haxe Input wrapper.

asOutput():Output

Returns a Haxe Output wrapper.

clear():Void

commit(len:Int):Void

decommit(len:Int):Void

destroy():Void

@:has_untypedgetReadPtr():BipPointer

Gets a pointer to a contiguous block of memory for reading.

@:has_untypedpeekBytes(bytes:Bytes, offset:Int, len:Int):Int

@:has_untypedreadBytes(bytes:Bytes, offset:Int, len:Int):Int

@:has_untypedreserve(len:Int):BipPointer

Reserves a contiguous block of memory for writing.

skip(len:Int):Int

@:has_untypedwriteBytes(bytes:Bytes, offset:Int, len:Int):Int