Options
All
  • Public
  • Public/Protected
  • All
Menu

HexToFloat

Take a hex input and convert it to a float.

Configuration

interface IHexToFloatConfig {
  endianness?: Endianness;
}

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

Example

const hexToFloatDefault = Mappers.hexToFloat(); // HexToFloat: endianness:"be"

const hexToFloatLittleEndian = Mappers.hexToFloat({ endianness: Endianness.LITTLE_ENDIAN }) // HexToFloat: endianness:"le"

Hierarchy

  • HexToFloat

Implements

Index

Constructors

constructor

  • new HexToFloat(__namedParameters?: object): HexToFloat

Properties

endianness

endianness: Endianness = Endianness.BIG_ENDIAN

hexRegExp

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

name

name: string = "Hex to float"

outputType

outputType: IOutputType = IOutputType.number

Static description

description: string = "Hex to float"

Static id

id: string = "HEXTOFLOAT"

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