Protocol Buffers: Portable Data Serializationπ i
Facilities to read and write
Protocol Buffers
in binary format. The basic message type is re-exported from the
reflection module.
type/msg:(or/cstruct-type?struct?)
in:input-port?=(current-input-port)
Read a structure instance encoded in protocol buffer format from the
port in. type/msg can either represent a protocol
buffer message type or be an existing protocol buffer message that
will be destructively merged with the newly read data.
v:struct?
out:output-port?=(current-output-port)
Write v to the port out, encoding it in protocol
buffer format. v must be an instance of a protocol buffer
message type.