teleproto - v1.229.0
    Preparing search index...

    Class BinaryReader

    Index
    • Read the given amount of bytes, or -1 to read all remaining.

      Parameters

      • length: number = -1

        {number}

      • checkLength: boolean = true

        {boolean} whether to check if the length overflows or not.

      Returns Buffer<ArrayBuffer>

    • Reads a n-bits long integer value.

      Parameters

      • bits: number
      • signed: boolean = true

        {Boolean}

      Returns BigInteger

    • Seeks the stream position given an offset from the current position. The offset may be negative.

      Parameters

      • offset: number

      Returns void

    offset: number