TROBSONArray

Overview

The TROBSONArray class is created to represent a BSON array - an ordered collection of values. This class is used internally by the BSON (de)serializer inside the TROBSONMessage class.
Users are not required to deal with BSON directly, so they usually don't need to use this class.

Location

 

constructor Create    (declared in TROBSONBaseCollection)

Creates a new instance

constructor Create

AddArray  overload

function AddArray: TROBSONElement

AddArray (TROBSONArray): TROBSONElement  overload

function AddArray(aValue: TROBSONArray): TROBSONElement

Parameters:

  • aValue:

AddBinary

procedure AddBinary(aValue: TBytes)

Parameters:

  • aValue:

AddBoolean

procedure AddBoolean(aValue: Boolean)

Parameters:

  • aValue:

AddDateTime

procedure AddDateTime(aValue: TDateTime)

Parameters:

  • aValue:

AddDocument  overload

function AddDocument: TROBSONElement

AddDocument (TROBSONDocument): TROBSONElement  overload

function AddDocument(aValue: TROBSONDocument): TROBSONElement

Parameters:

  • aValue:

AddDouble

procedure AddDouble(aValue: Double)

Parameters:

  • aValue:

AddGuid

procedure AddGuid(aValue: TGUID)

Parameters:

  • aValue:

AddInt64

procedure AddInt64(aValue: Int64)

Parameters:

  • aValue:

AddInteger

procedure AddInteger(aValue: Integer)

Parameters:

  • aValue:

AddNull

procedure AddNull

AddString

procedure AddString(aValue: UnicodeString)

Parameters:

  • aValue:

AddVariant

procedure AddVariant(aValue: Variant)

Parameters:

  • aValue:

AsBSON    (declared in TROBSONBaseCollection)

Returns object as BSON bytes

function AsBSON: TBytes

Items    (declared in TROBSONBaseCollection)

This property allows the collection content to be accessed by index.

property Items[Index: Integer]: TROBSONElement read write

 

Items    (declared in TROBSONBaseCollection)

This property allows the collection content to be accessed by index.

property Items[Index: Integer]: TROBSONElement read write

 

constructor Create    (declared in TROBSONBaseCollection)

Creates a new instance

constructor Create

AddArray  overload

function AddArray: TROBSONElement

AddArray (TROBSONArray): TROBSONElement  overload

function AddArray(aValue: TROBSONArray): TROBSONElement

Parameters:

  • aValue:

AddBinary

procedure AddBinary(aValue: TBytes)

Parameters:

  • aValue:

AddBoolean

procedure AddBoolean(aValue: Boolean)

Parameters:

  • aValue:

AddDateTime

procedure AddDateTime(aValue: TDateTime)

Parameters:

  • aValue:

AddDocument  overload

function AddDocument: TROBSONElement

AddDocument (TROBSONDocument): TROBSONElement  overload

function AddDocument(aValue: TROBSONDocument): TROBSONElement

Parameters:

  • aValue:

AddDouble

procedure AddDouble(aValue: Double)

Parameters:

  • aValue:

AddGuid

procedure AddGuid(aValue: TGUID)

Parameters:

  • aValue:

AddInt64

procedure AddInt64(aValue: Int64)

Parameters:

  • aValue:

AddInteger

procedure AddInteger(aValue: Integer)

Parameters:

  • aValue:

AddNull

procedure AddNull

AddString

procedure AddString(aValue: UnicodeString)

Parameters:

  • aValue:

AddVariant

procedure AddVariant(aValue: Variant)

Parameters:

  • aValue:

AsBSON    (declared in TROBSONBaseCollection)

Returns object as BSON bytes

function AsBSON: TBytes