Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/buffer

Index

References

concat

Re-exports concat

fromHex

Re-exports fromHex

fromUtf8

Re-exports fromUtf8

stripPrefix

Re-exports stripPrefix

toBuffer

Re-exports toBuffer

toHex

Re-exports toHex

toUtf8

Re-exports toUtf8

Functions

Const getRandomBytes

  • getRandomBytes(length: number): Uint8Array

Const numberToBuffer

  • numberToBuffer(data: number, byteLength: 1 | 2 | 4): Uint8Array
  • Write a number to a Uint8Array with arbitrary length.

    Parameters

    • data: number
    • byteLength: 1 | 2 | 4

    Returns Uint8Array

Generated using TypeDoc