Options
All
  • Public
  • Public/Protected
  • All
Menu

HexToInt

Take a hex input and convert it to an int.

Configuration

interface IHexToIntConfig {
  endianness?: Endianness;
  signed?: boolean;
}

enum Endianness {
  LITTLE_ENDIAN = "le",
  BIG_ENDIAN = "be",
}

Example

const hexToIntDefault = Mappers.hexToInt(); // HexToInt: endianness:"be"|signed:false

const hexToIntLittleEndian = Mappers.hexToInt({ endianness: Endianness.LITTLE_ENDIAN }) // HexToInt: endianness:"le"|signed:false

const hextoIntSigned = Mappers.hexToInt({ signed: true }); // HexToInt: endianness:"be"|signed:true

Hierarchy

  • HexToInt

Implements

Index

Constructors

constructor

  • new HexToInt(__namedParameters?: object): HexToInt

Properties

endianness

endianness: Endianness = Endianness.BIG_ENDIAN

hexRegExp

hexRegExp: RegExp = new RegExp(/^[a-fxA-F0-9_]+$/)

name

name: string = "Hex to int"

outputType

outputType: IOutputType = IOutputType.number

signed

signed: boolean = false

Static description

description: string = "Hex to int"

Static id

id: string = "HEXTOINT"

Methods

config

transform

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc