Kaya 0.4.4 reference for Binary::readBlock

List of functions and data types in Binary

Binary readBlock(File h, Int bsize)

Arguments

Usage

Creates a block of size bsize and reads data into it. If there is less data to read than bsize, the block will contain as much data as could be read, and the blockSize function will return the size of the data that was read. Naturally, the file handle must be valid and readable.

Related

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