Binary.readBlock.3kaya

Langue: en

Version: March 2009 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Binary::readBlock - Read a block from a file.

SYNOPSIS

Binary readBlock( File h, Int bsize )

ARGUMENTS

h A file handle to read from

bsize The maximum number of bytes to read

DESCRIPTION

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.

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

LICENSE

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)