import { Bson } from "https://deno.land/x/denodb@v1.1.0/deps.ts";
const { serializeWithBufferAndIndex } = Bson;
Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.
Parameters
object: Document
- the Javascript object to serialize.
optional
options: SerializeOptions