BSONWriter
Writer for BSON files.
Loader | Characteristic |
---|---|
File Extension | .bson |
Media Type | application/bson |
File Type | Binary |
File Format | BSON |
Data Format | Unstructured/HSON |
Supported APIs | encode , encodeSync |
Usage
import {BSONWriter} from '@loaders.gl/json';
import {encode} from '@loaders.gl/core';
const arrayBufer = await encode(data, BSONWriter);
Options
N/A
Note: Currently passes through options to the underlying js-bson
module
but this may change in future versions and should not be relied upon.