Next: , Previous: SRFI-56 General reading, Up: SRFI-56


39.18.5 SRFI-56 Predefined read sizes

— Scheme Procedure: read-binary-uint8 [port [endian]]

Read an unsigned integer of one byte from the current input port. Optional arg port specifies a port to read from, instead. Optional second arg endian is a symbol. Return the eof object if not enough bytes are available.

— Scheme Procedure: read-binary-uint16 [port [endian]]

Read an unsigned integer of two bytes from the current input port. Optional arg port specifies a port to read from, instead. Optional second arg endian is a symbol. Return the eof object if not enough bytes are available.

— Scheme Procedure: read-binary-uint32 [port [endian]]

Read an unsigned integer of four bytes from the current input port. Optional arg port specifies a port to read from, instead. Optional second arg endian is a symbol. Return the eof object if not enough bytes are available.

— Scheme Procedure: read-binary-uint64 [port [endian]]

Read an unsigned integer of eight bytes from the current input port. Optional arg port specifies a port to read from, instead. Optional second arg endian is a symbol. Return the eof object if not enough bytes are available.

— Scheme Procedure: read-binary-sint8 [port [endian]]

Read a signed integer of one byte from the current input port. Optional arg port specifies the port to read, instead. Optional second arg endian is a symbol. Return the eof object if not enough bytes are available.

— Scheme Procedure: read-binary-sint16 [port [endian]]

Read a signed integer of two bytes from the current input port. Optional arg port specifies the port to read, instead. Optional second arg endian is a symbol. Return the eof object if not enough bytes are available.

— Scheme Procedure: read-binary-sint32 [port [endian]]

Read a signed integer of four bytes from the current input port. Optional arg port specifies the port to read, instead. Optional second arg endian is a symbol. Return the eof object if not enough bytes are available.

— Scheme Procedure: read-binary-sint64 [port [endian]]

Read a signed integer of eight bytes from the current input port. Optional arg port specifies the port to read, instead. Optional second arg endian is a symbol. Return the eof object if not enough bytes are available.