record TgoBsonBinaryData
Unit
Grijjy.Bson
Declaration
type TgoBsonBinaryData = record
Description
A blob of binary data
Overview
Methods
Properties
Description
Methods
class function Create: TgoBsonBinaryData; overload; static; |
Creates an empty BSON binary.
Returns
The empty BSON binary |
class function Create(const AData: TBytes): TgoBsonBinaryData; overload; static; |
Creates a BSON binary from a byte array.
Parameters
- AData
- the bytes to populate the binary with.
Returns
The BSON binary |
class function Create(const AData: TBytes; const ASubType: TgoBsonBinarySubType): TgoBsonBinaryData; overload; static; |
Creates a BSON binary from a byte array.
Parameters
- AData
- the bytes to populate the binary with.
- ASubType
- the type of binary data in AData.
Returns
The BSON binary |
Properties
property SubType: TgoBsonBinarySubType read GetSubType; |
The type of binary data this object contains
|
property Count: Integer read GetCount; |
Number of bytes in the binary data
|
property Bytes[constAIndex:Integer]: Byte read GetByte write SetByte; |
The bytes in the binary data.
Parameters
- AIndex
- the index of the byte to get or set.
Exceptions raised
EArgumentOutOfRangeException
- in AIndex is out of bounds.
|
property AsBytes: TBytes read GetAsBytes; |
Returns the binary as a byte array
|
Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26
|