CTBlob Class

Description

The CTBlob class represents Blob objects.

Preconditions

This is one of the basic objects from the c-tree database layer.

CTBlob Operators

  • operator =: Assignment operator
  • operator <, <=, >, >=, ==, !=: Comparison operators

CTBlob.operator =

Syntax

CTBlob operator=( CTBlob Blob)

CTBlob operator=( ctdbBLOB blob)

Parameters

  • Blob [in] The CTBlob object to be assigned to the new CTBlob object
  • blob [in] The ctdbBLOB object to be assigned to the new CTBlob object

Description

Assigns a Blob or ctdbBLOB object to form a new CTBlob object

Return

The new CTBlob object

CTBlob.operator <, <=, >, >=, ==, !=

Syntax

bool operator < (CTBlob blob)

bool operator <= (CTBlob blob)

bool operator > (CTBlob blob)

bool operator >= (CTBlob blob)

bool operator == (CTBlob blob)

bool operator != (CTBlob blob)

Parameters

  • blob [in] The CTBlob object to be compared with this CTBlob object.

Description

These overloaded operators compare two CTBlob objects.

Return

The operators return true or false, depending on the result of the comparison.

CTBlob Methods

Constructor / Destructor

  • CTBlob(): Creates a CTBlob object
  • ~CTBlob(): Destroys a CTBlob Object and resets all the dependent objects

Blob Handling

  • SetBlob(): Initializes the CTBlob object.
  • GetBlob(): Retrieves a CTBlob object
  • GetSize(): Retrieves the size of a CTBlob object

CTBlob.CTBlob

Syntax

CTBlob ( )

CTBlob (IntPtr data, int size)

CTBlob (ctdbBLOB Blob)

CTBlob (CTBlob blob)

Parameters

  • data [in] The data to be assigned to the CTBlob object in the creation.
  • size [in] The data size.
  • Blob [in] The ctdbBLOB object or Blob to be assigned to the new CTBlob object
  • blob [in] The CTBlob object or Blob to be assigned to the new CTBlob object

Description

This is the constructor for the CTBlob object.

See Also

~CTBlob()

CTBlob.~CTBlob

Syntax

~CTBlob

Parameters

This destructor has no parameters.

Description

This is the destructor for the CTBlob object.

See Also

CTBlob()

CTBlob.GetBlob

Syntax

void GetBlob(ctdbBLOB Blob)

Parameters

  • Blob [out] The retrieved ctdbBLOB object

Description

Retrieves the CTBlob object

Return

None.

See Also

SetBlob()

CTBlob.GetSize

Syntax

Int GetSize()

Parameters

This method has no parameters.

Description

Retrieves the CTBlob object size.

Return

GetSize() returns the object size.

CTBlob.SetBlob

Syntax

void SetBlob(ctdbBLOB Blob)

void SetBlob(CTBlob blob)

void SetBlob(IntPtr data, int size)

Parameters

  • Blob [in] The ctdbBlob object or Blob to be assigned to the CTBlob object
  • blob [in] The CTBlob object or Blob to be assigned to the CTBlob object
  • data [in] The data to be assigned to the CTBlob object
  • size [in] The data size.

Description

Initializes the CTBlob object.

Return

None.

See Also

GetBlob(), Get()