Options
All
  • Public
  • Public/Protected
  • All
Menu

Module parsers/fixed-bytes

Index

Variables

Functions

Variables

Const fixedBytes

fixedBytes: Parser<BytesLike, Uint8Array> = ...

Functions

Const getByteLength

  • getByteLength(type: string): number
  • Get the length of the specified type. If a length is not specified, or if the length is out of range (0 < n <= 32), this will throw an error.

    Parameters

    • type: string

      The type to get the length for.

    Returns number

    The byte length of the type.

Generated using TypeDoc