Skip to content

Bytes.size

Retrieves the size of a Bytes.Bytes value.

Imports

Named
import { Bytes } from 'ox'

Examples

import { Bytes } from 'ox'
 
Bytes.size(Bytes.from([1, 2, 3, 4]))
4

Definition

function size(
  value: Bytes,
): number

Source: src/Bytes.ts

Parameters

value

  • Type: Bytes

Bytes.Bytes value.

Return Type

Size of the Bytes.Bytes value.

number