Action
    Preparing search index...

    Class BinaryReader

    Reads primitive data types as binary values in a specific encoding.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Determines whether the specified object is equal to the current object.

      Parameters

      • obj: any

        The object to compare with the current object.

      Returns boolean

      true if the specified object is equal to the current object; otherwise, false.

    • Serves as the default hash function.

      Returns number

      A hash code for the current object.

    • Reads the specified number of bytes from the stream, starting from a specified point in the byte array.

      Parameters

      • buffer: TypedArray<number> | TypedArray<Byte>

        The buffer to read data into.

      • index: number | Int32

        The starting point in the buffer at which to begin reading into the buffer.

      • count: number | Int32

        The number of bytes to read.

      Returns number

      The number of bytes read into buffer. This might be less than the number of bytes requested if that many bytes are not available, or it might be zero if the end of the stream is reached.

    • Returns a string that represents the current object.

      Returns string

      A string that represents the current object.

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns null | T1

    • Determines whether the specified object instances are considered equal.

      Parameters

      • objA: any

        The first object to compare.

      • objB: any

        The second object to compare.

      Returns boolean

      true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.