Skip to main content
Module

x/mongo/mod.ts>Bson.Binary#write

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

Writes a buffer or string to the binary.

Parameters

sequence: string | BinarySequence
  • a string or buffer to be written to the Binary BSON object.
offset: number
  • specify the binary of where to write the content.