bloblen()

The function returns the length of a blob in bytes.

Synopsis

int bloblen(blob target)

Parameter

Parameter Description
target The blob

Return Value

The function returns -1 if an error occurs and otherwise the length of the blob.

Errors

Missing or wrong arguments

Description

When data is sent in a blob, the data has to be processed by using CTRL functions in order to use the data in CTRL. This function returns the length of a blob.

Example

main()
{
  blob target;
  string s;
  s = "FFAB003AFFAB4565FCFFAAEEEEEDDDDDEEEEFFFF";
  target = s;
  DebugN("Blob Len : " + bloblen( target ));
// returns 20
}

Assignment

Blob functions

Availability

CTRL