chickadee » protobuf » read-uint*

(read-uint* [PORT] [MAX-SIZE])procedure

Reads a variable length base 128 encoded unsigned integer from PORT (defaulting to (current-input-port)). Stops with a syntax error if the encoding is longer than MAX-SIZE bytes (defaulting to 10); pass #f to disable the length check.