Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HexBuffer

Buffer wrapper that serializes to a hex-encoded string.

Hierarchy

  • HexBuffer

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

buffer

buffer: Buffer

Methods

toJSON

  • toJSON(): string

toString

  • toString(encoding?: string): string
  • Parameters

    • Default value encoding: string = "hex"

    Returns string

Static from

  • Convenience to create a new HexBuffer, does not copy data if value passed is already a buffer.

    Parameters

    • value: Buffer | HexBuffer | number[] | string

    Returns HexBuffer

Generated using TypeDoc