Variable BufferUtilsConst

BufferUtils: {
    arrayBuffersAreEqual: ((a, b) => boolean);
    concatBuffer: ((...buffers) => Uint8Array);
    dataViewsAreEqual: ((a, b) => boolean);
    fromHexString: ((bufferString) => Uint8Array);
    toHexString: ((buffer) => string);
} = ...

Type declaration

  • arrayBuffersAreEqual: ((a, b) => boolean)
      • (a, b): boolean
      • Parameters

        • a: ArrayBuffer

          Array buffer to compare

        • b: ArrayBuffer

          Array buffer to compare

        Returns boolean

  • concatBuffer: ((...buffers) => Uint8Array)
      • (...buffers): Uint8Array
      • Parameters

        • Rest ...buffers: Uint8Array[]

          Buffers to concat

        Returns Uint8Array

  • dataViewsAreEqual: ((a, b) => boolean)
      • (a, b): boolean
      • Parameters

        • a: DataView

          Data view to compare

        • b: DataView

          Data view to compare

        Returns boolean

  • fromHexString: ((bufferString) => Uint8Array)
      • (bufferString): Uint8Array
      • Hex string to Buffer

        Parameters

        • bufferString: string

          Hex string

        Returns Uint8Array

        Buffer

  • toHexString: ((buffer) => string)
      • (buffer): string
      • Buffer to Hex string

        Parameters

        • buffer: Uint8Array

          Buffer

        Returns string

        Hex string