Next: , Previous: , Up: iklib reader   [Index]


6.13.2 Additional bytevector syntaxes

The following syntaxes are available only when the input port mode is set to vicare.

Reader Syntax: #vs8(byte ...)

Read a bytevector as #vu8(octect ...) would do, but allow byte to be in the range [-128, 127].

Reader Syntax: #vu16l(word ...)
Reader Syntax: #vu16b(word ...)
Reader Syntax: #vu16n(word ...)

Read a bytevector of 16-bit unsigned words stored in little, big and native endianness.

Reader Syntax: #vs16l(word ...)
Reader Syntax: #vs16b(word ...)
Reader Syntax: #vs16n(word ...)

Read a bytevector of 16-bit signed words stored in little, big and native endianness.

Reader Syntax: #vu32l(word ...)
Reader Syntax: #vu32b(word ...)
Reader Syntax: #vu32n(word ...)

Read a bytevector of 32-bit unsigned words stored in little, big and native endianness.

Reader Syntax: #vs32l(word ...)
Reader Syntax: #vs32b(word ...)
Reader Syntax: #vs32n(word ...)

Read a bytevector of 32-bit signed words stored in little, big and native endianness.

Reader Syntax: #vu64l(word ...)
Reader Syntax: #vu64b(word ...)
Reader Syntax: #vu64n(word ...)

Read a bytevector of 64-bit unsigned words stored in little, big and native endianness.

Reader Syntax: #vs64l(word ...)
Reader Syntax: #vs64b(word ...)
Reader Syntax: #vs64n(word ...)

Read a bytevector of 64-bit signed words stored in little, big and native endianness.

Reader Syntax: #vf4l(flonum ...)
Reader Syntax: #vf4b(flonum ...)
Reader Syntax: #vf4n(flonum ...)

Read a bytevector of single–precision flonums stored in little, big and native endianness.

Reader Syntax: #vf8l(flonum ...)
Reader Syntax: #vf8b(flonum ...)
Reader Syntax: #vf8n(flonum ...)

Read a bytevector of double–precision flonums stored in little, big and native endianness.

Reader Syntax: #vc4l(cflonum ...)
Reader Syntax: #vc4b(cflonum ...)
Reader Syntax: #vc4n(cflonum ...)

Read a bytevector of single–precision cflonums stored in little, big and native endianness, real part first.

Reader Syntax: #vc8l(cflonum ...)
Reader Syntax: #vc8b(cflonum ...)
Reader Syntax: #vc8n(cflonum ...)

Read a bytevector of double–precision cflonums stored in little, big and native endianness, real part first.

Reader Syntax: #ve(encoding data)

Read a bytevector in some encoding which is supposed to be easy to type for human beings. encoding is a symbol representing the encoding format, data is a datum to convert to bytevector. At present the following encodings are supported:

ascii

Convert the Scheme string data to a bytevector using the function string->ascii.

latin1

Convert the Scheme string data to a bytevector using the function string->latin1.

utf8

Convert the Scheme string data to a bytevector using the function string->utf8.

utf16be

Convert the Scheme string data to a bytevector using the function string->utf16be.

utf16le

Convert the Scheme string data to a bytevector using the function string->utf16le.

utf16n

Convert the Scheme string data to a bytevector using the function string->utf16n.

hex

Convert the Scheme string data to a bytevector using the function string-hex->bytevector.

base64

Convert the Scheme string data to a bytevector using the function string-base64->bytevector.

percent-encoding

Convert the Scheme string data to a bytevector using the function string->percent-encoding.


Next: , Previous: , Up: iklib reader   [Index]