Static methods
staticblit(this:Buffer, destination:Buffer):Void
Copies data from this buffer to destination.
The amount of data copied is the minimum of the two buffers' size.
staticblitFromBytes(this:Buffer, source:Bytes, sourceOffset:Int):Void
Copies data from bytes to a buffer.
staticblitFromString(this:Buffer, source:NativeString, sourceOffset:Int):Void
Copies data from bytes to a buffer.
Note: sourceOffset is not a character offset but a byte offset.
staticblitToBytes(this:Buffer, destination:Bytes, destinationOffset:Int):Void
Copies data from a buffer to bytes buffer.
staticdrop(buffers:Array<Buffer>, count:Int):Array<Buffer>
Buffer.drop(buffers, count) drops the first count bytes from buffers.
For example, if buffers contains two buffers of size 16, Buffer.drop(buffers, 18)
will evaluate to an array that has lost the reference to the first buffer,
and contains only a view into the second buffer of size 14.
staticsub(this:Buffer, offset:Int, length:Int):Buffer
Creates a view into buffer that starts at the given offset and has the given length.
No data is copied.
statictoBytes(this:Buffer):Bytes
Creates a haxe.io.Bytes instance with the same contents as this buffer.
statictoNativeString(this:Buffer):NativeString
Creates a native string with the same contents as the buffer.
statictotalSize(buffers:Array<Buffer>):Int
Evaluates to the sum of the sizes of the buffers in the array.