1Binary.readBlock(3kaya) Kaya module reference Binary.readBlock(3kaya)
2
3
4
6 Binary::readBlock - Read a block from a file.
7
9 Binary readBlock( File h, Int bsize )
10
12 h A file handle to read from
13
14 bsize The maximum number of bytes to read
15
17 Creates a block of size bsize and reads data into it. If there is less
18 data to read than bsize , the block will contain as much data as could
19 be read, and the Binary.blockSize (3kaya) function will return the size
20 of the data that was read. Naturally, the file handle must be valid and
21 readable.
22
24 Kaya standard library by Edwin Brady, Chris Morris and others
25 (kaya@kayalang.org). For further information see http://kayalang.org/
26
28 The Kaya standard library is free software; you can redistribute it
29 and/or modify it under the terms of the GNU Lesser General Public
30 License (version 2.1 or any later version) as published by the Free
31 Software Foundation.
32
34 Binary.Binary (3kaya)
35 IO(3kaya)
36 Binary.writeBlock (3kaya)
37
38
39
40Kaya December 2010 Binary.readBlock(3kaya)