Next: , Previous: SRFI-56 Predefined read sizes, Up: SRFI-56


39.18.6 SRFI-56 General writing

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

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

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

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