Options
All
  • Public
  • Public/Protected
  • All
Menu

This module provides utilities to encode and decode hex strings.

Index

Functions

Functions

Decode

  • Decode(str: string): ArrayBuffer
  • Decode a string from hex.

    Parameters

    • str: string

      Hex-encoded string

    Returns ArrayBuffer

    Data decoded from the hex string

Encode

  • Encode(ab: ArrayBuffer): string
  • Encode an ArrayBuffer to hex in a string.

    Parameters

    • ab: ArrayBuffer

      Data to encode to hex

    Returns string

    Hex-encoded string

Generated using TypeDoc