Otter SDK Reference
Version:

ReadLength(System.IO.Stream stream) Method

Reads a variable-length 32-bit integer 7 bits at a time.

Syntax

public static int ReadLength(System.IO.Stream stream)

Parameters

stream
Type: System.IO.Stream

Stream from which value is read.

Returns

Value read from the stream.

Exceptions

System.ArgumentNullException

stream is null (Nothing in Visual Basic).