Hierarchy

  • ByteBuffer

Methods

  • Returns

    The entire current Uint8Array.

    WARNING: if the buffer grows, the view had changed itself, and the reference will be a invalid one.

    Returns Uint8Array

  • Returns

    The capacity of the current buffer

    Returns number

  • Returns

    The current read offset

    Returns number

  • Returns

    The current write offset

    Returns number

  • Parameters

    • offset: number

    Returns number

  • Parameters

    • offset: number

    Returns number

  • Parameters

    • offset: number

    Returns number

  • Parameters

    • offset: number

    Returns number

  • Parameters

    • offset: number

    Returns bigint

  • Parameters

    • offset: number

    Returns number

  • Parameters

    • offset: number

    Returns number

  • Parameters

    • offset: number

    Returns number

  • Parameters

    • offset: number

    Returns bigint

  • Parameters

    • offset: number

    Returns number

  • Reading purpose Returns the previuos offsset size before incrementing

    Parameters

    • amount: number

    Returns number

  • Increment offset

    Returns

    The offset when this reserving starts.

    Parameters

    • amount: number

      how many bytes

    Returns number

  • Returns Uint8Array

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns bigint

  • Returns number

  • Returns number

  • Returns number

  • Returns bigint

  • Returns number

  • Returns string

  • Returns

    How many bytes are available to read.

    Returns number

  • Resets byteBuffer to avoid creating a new one

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns void

  • Parameters

    • offset: number
    • value: bigint

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns void

  • Parameters

    • offset: number
    • value: bigint

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns void

  • Take care using this function, if you modify the data after, the returned subarray will change too. If you'll modify the content of the bytebuffer, maybe you want to use toCopiedBinary()

    Returns

    The subarray from 0 to offset as reference.

    Returns Uint8Array

  • Safe copied buffer of the current data of ByteBuffer

    Returns

    The subarray from 0 to offset.

    Returns Uint8Array

  • Parameters

    • value: Uint8Array
    • Optional writeLength: boolean

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: bigint

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: bigint

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: string
    • Optional writeLength: boolean

    Returns void