Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/encoding/binary.ts>sizeof

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function sizeof
import { sizeof } from "https://deno.land/std@0.37.0/encoding/binary.ts";

Returns the number of bytes required to store the given data-type.

Parameters

dataType: RawTypes

Returns

number