Kaya 0.5.3 reference for Binary::createBlock

List of functions and data types in Binary

Binary createBlock(Int bsize)

Arguments

Usage

Create a new, uninitialised block for binary data. Remember to use Builtins::byteLength instead of Builtins::length if you want to store Strings in these, as you may have problems with multi-byte characters otherwise.

The uninitialised contents of this block are not guaranteed to be zeroes.

Related

kaya@kayalang.org | Last modified 13 July 2009 | Supported by Durham CompSoc | Powered by Kaya