Otter SDK Reference
Version:

ReadLength(System.IO.BinaryReader reader) Method

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

Syntax

public static int ReadLength(System.IO.BinaryReader reader)

Parameters

reader
Type: System.IO.BinaryReader

Binary reader from which the value is read.

Returns

Value read from the stream.

Exceptions

System.ArgumentNullException

reader is null (Nothing in Visual Basic).