Skip to main content
Module

x/mongo/mod.ts>Bson.Long#toBytes

MongoDB driver for Deno
Very Popular
Go to Latest
method Bson.Long.prototype.toBytes
import { Bson } from "https://deno.land/x/mongo@v0.31.2/mod.ts";
const { Long } = Bson;

Converts this Long to its byte representation.

Parameters

optional
le: boolean
  • Whether little or big endian, defaults to big endian

Returns

number[]

Byte representation