Skip to content

Hex.size

Retrieves the size of a Hex.Hex value (in bytes).

Imports

Named
import { Hex } from 'ox'

Examples

import { Hex } from 'ox'
 
Hex.size('0xdeadbeef')
4

Definition

function size(
  value: Hex,
): number

Source: src/core/Hex.ts

Parameters

value

  • Type: Hex

The Hex.Hex value to get the size of.

Return Type

The size of the Hex.Hex value (in bytes).

number