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

x/hex/src/lib/data/deps.ts>mongo.Long.fromBytes

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
method mongo.Long.fromBytes
Re-export
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { Long } = mongo;

Creates a Long from its byte representation.

Parameters

bytes: number[]
  • Byte representation
optional
unsigned: boolean
  • Whether unsigned or not, defaults to signed
optional
le: boolean
  • Whether little or big endian, defaults to big endian

Returns

The corresponding Long value