1Binary.peekString(3kaya) Kaya module reference Binary.peekString(3kaya)
2
3
4
6 Binary::peekString - Read a String from binary data.
7
9 String peekString( Binary block, Int offset )
10
12 block The binary block
13
14 offset The location to read from (starting from zero)
15
17 Peek at the string val starting at offset offset
18 An Binary.OffsetOutOfRange (3kaya) exception will be thrown if it
19 attempts to access a value outside the block. Note that Kaya assumes
20 the String is stored in the block in UTF-8 encoding, with null-termina‐
21 tion.
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 Binary.array (3kaya)
36 Binary.getBlockChunk (3kaya)
37 Binary.peek (3kaya)
38 Binary.pokeString (3kaya)
39
40
41
42Kaya December 2010 Binary.peekString(3kaya)