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

std/io/mod.ts>sliceLongToBytes

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function sliceLongToBytes
Deprecated
Deprecated

(will be removed after 1.0.0) Use Web Streams instead.

import { sliceLongToBytes } from "https://deno.land/std@0.205.0/io/mod.ts";

Slice number into 64bit big endian byte array

Parameters

d: number

The number to be sliced

optional
dest = [UNSUPPORTED]

The sliced array

Returns

number[]