Next: , Previous: SRFI-56 Endianness, Up: SRFI-56


39.18.4 SRFI-56 General reading

— Scheme Procedure: read-binary-uint size [port [endian]]

Read an unsigned integer of size bytes from the current input port. Optional second arg port specifies the port to read, instead. Optional third arg endian is either big-endian or little-endian (a symbol). If fewer than size bytes are available in the port, return the eof object.

— Scheme Procedure: read-binary-sint size [port [endian]]

Read a signed integer of size bytes from the current input port. Optional second arg port specifies the port to read, instead. Optional third arg endian is either big-endian or little-endian (a symbol). If fewer than size bytes are available in the port, return the eof object.