procedure
( read-uint* [inmax-size])
→(or/cexact-nonnegative-integer?eof-object?)in:input-port?=(current-input-port)max-size:(or/cexact-positive-integer?#f)=10procedure
( write-uint* n[outmax-size])→void?
n:exact-nonnegative-integer?out:output-port?=(current-output-port)max-size:(or/cexact-positive-integer?#f)=10
procedure
( read-sint* [inmax-size])→(or/cexact-integer?eof-object?)
in:input-port?=(current-input-port)max-size:(or/cexact-positive-integer?#f)=10procedure
( write-sint* i[outmax-size])→void?
i:exact-integer?out:output-port?=(current-output-port)max-size:(or/cexact-positive-integer?#f)=10
procedure
( read-int* [in])→(or/cexact-integer?eof-object?)
in:input-port?=(current-input-port)
procedure
( read-bool [in])→(or/cbool?eof-object?)
in:input-port?=(current-input-port)
procedure
( read-fixed32 [in])
→(or/cexact-nonnegative-integer?eof-object?)in:input-port?=(current-input-port)procedure
( read-fixed64 [in])
→(or/cexact-nonnegative-integer?eof-object?)in:input-port?=(current-input-port)procedure
( write-fixed32 n[out])→void?
n:exact-nonnegative-integer?out:output-port?=(current-output-port)procedure
( write-fixed64 n[out])→void?
n:exact-nonnegative-integer?out:output-port?=(current-output-port)
procedure
( read-sfixed32 [in])→(or/cexact-integer?eof-object?)
in:input-port?=(current-input-port)procedure
( read-sfixed64 [in])→(or/cexact-integer?eof-object?)
in:input-port?=(current-input-port)
procedure
( read-float [in])→(or/creal?eof-object?)
in:input-port?=(current-input-port)procedure
( read-double [in])→(or/creal?eof-object?)
in:input-port?=(current-input-port)
procedure
( read-sized-bytes [in])→(or/cbytes?eof-object?)
in:input-port?=(current-input-port)
procedure
( read-sized-string [in])→(or/cstring?eof-object?)
in:input-port?=(current-input-port)
procedure
( write-sized writev[out])→any
write:(->any/coutput-port?any)v:any/cout:output-port?=(current-output-port)
On input, read is called on an input port limited according to the size prefix. On output, write is called on v and a byte string output port; the buffered output’s length is then written to the actual output port.
procedure
( read-tag/type [in])
→(or/ctag/ceof-object?)(or/cexact-nonnegative-integer?eof-object?)in:input-port?=(current-input-port)procedure
( write-tag/type tagtype[out])→void?
tag:tag/ctype:exact-nonnegative-integer?out:output-port?=(current-output-port)
value
type/c :flat-contract?
'int*: The field value is encoded as a variable length integer.
'64bit: The field value is always encoded in 64 bits.
'32bit: The field value is always encoded in 32 bits.
'sized: The field value is encoded with a byte size prefix.