Provided by: kaya_0.4.4-6ubuntu3_amd64
Binary::readBlock - Read a block from a file.
Binary readBlock( File h, Int bsize )
h A file handle to read from bsize The maximum number of bytes to read
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 Binary.blockSize (3kaya) function will return the size of the data that was read. Naturally, the file handle must be valid and readable.
Kaya standard library by Edwin Brady, Chris Morris and others (email@example.com). For further information see http://kayalang.org/
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.
Binary.Binary (3kaya) IO(3kaya) Binary.writeBlock (3kaya)