API 参考
    正在准备搜索索引...
    • Deserialize stream data as BSON documents.

      参数

      • data: ArrayBuffer | Uint8Array<ArrayBufferLike>

        the buffer containing the serialized set of BSON documents.

      • startIndex: number

        the start index in the data Buffer where the deserialization is to start.

      • numberOfDocuments: number

        number of documents to deserialize.

      • documents: Document[]

        an array where to store the deserialized documents.

      • docStartIndex: number

        the index in the documents array from where to start inserting documents.

      • options: DeserializeOptions

        additional options used for the deserialization.

      返回 number

      next index in the buffer after deserialization x numbers of documents.