Kaya 0.4.4 reference for Binary::copyBlock

List of functions and data types in Binary

Binary copyBlock(Binary block)

Arguments

Usage

Creates a new block with identical size and contents to block. This can be used to allow editing of data from a block created with createInitialisedBlock, without altering the foreign structure itself.

cblock = createInitialisedBlock(ptr,len);
kblock = copyBlock(cblock);

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya