Interface IgoBsonWriter

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type IgoBsonWriter = interface(IgoBsonBaseWriter)

Description

Interface for writing BSON values to binary BSON format. See TgoBsonWriter for the stock implementation of this interface.

Attributes
GUID['{6B413B69-018F-48AD-8D81-140C1078AFA1}']

Hierarchy

Overview

Methods

Public function ToBson: TBytes;
Public procedure WriteRawBsonDocument(const ADocument: TBytes);

Description

Methods

Public function ToBson: TBytes;

Returns the currently written data as a byte array.

Note: you usually call this method when you have finished writing a BSON Document or value

Returns

The data in BSON format.

Public procedure WriteRawBsonDocument(const ADocument: TBytes);

Writes a raw BSON document.

Note: no BSON validity checking is performed. The value will be written as-is, and generate invalid BSON of not used carefully.

Parameters
AValue
the raw BSON document to write.

Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26