Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/data/deps.ts>mongo.Binary

An ecosystem delivering practices, philosophy and portability.
Go to Latest
class mongo.Binary
Re-export
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { Binary } = mongo;

Constructors

new
Binary(buffer: Uint8Array, subType?: number)

Properties

_bsontype: string
buffer: Uint8Array
subType: number

Methods

length(): number
toExtendedJSON(options?: EJSONOptions): BinaryExtended
toJSON(): string
toString(): string

Static Methods

fromExtendedJSON(doc: BinaryExtended | UUIDExtended, options?: EJSONOptions): Binary