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


39.18.7 SRFI-56 Predefined write sizes

— Scheme Procedure: write-binary-uint8 n [port [endian]]

Write one byte to the current output port representing unsigned integer n. Signal error if n is negative. Optional second arg port specifies a port to write to, instead. Optional third arg endian is an endian symbol.

— Scheme Procedure: write-binary-uint16 n [port [endian]]

Write two bytes to the current output port representing unsigned integer n. Signal error if n is negative. Optional second arg port specifies a port to write to, instead. Optional third arg endian is an endian symbol.

— Scheme Procedure: write-binary-uint32 n [port [endian]]

Write four bytes to the current output port representing unsigned integer n. Signal error if n is negative. Optional second arg port specifies a port to write to, instead. Optional third arg endian is an endian symbol.

— Scheme Procedure: write-binary-uint64 n [port [endian]]

Write eight bytes to the current output port representing unsigned integer n. Signal error if n is negative. Optional second arg port specifies a port to write to, instead. Optional third arg endian is an endian symbol.

— Scheme Procedure: write-binary-sint8 n [port [endian]]

Write one byte to the current output port representing signed integer n. Optional second arg port specifies a port to write to, instead. Optional third arg endian is an endian symbol.

— Scheme Procedure: write-binary-sint16 n [port [endian]]

Write two bytes to the current output port representing signed integer n. Optional second arg port specifies a port to write to, instead. Optional third arg endian is an endian symbol.

— Scheme Procedure: write-binary-sint32 n [port [endian]]

Write four bytes to the current output port representing signed integer n. Optional second arg port specifies a port to write to, instead. Optional third arg endian is an endian symbol.

— Scheme Procedure: write-binary-sint64 n [port [endian]]

Write eight bytes to the current output port representing signed integer n. Optional second arg port specifies a port to write to, instead. Optional third arg endian is an endian symbol.