Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.18.18 NdbBlob::setPos()

Description.  This method sets the position within the blob at which to read or write data.

Signature. 

int setPos
    (
      Uint64 pos
    )

Parameters.  The setPos() method takes a single parameter pos (an unsigned 64-bit integer), which is the position for reading or writing data. The value of pos must be between 0 and the blob's current length.

Important

Sparse blobs are not supported in the NDB API; in other words, there can be no unused data positions within a blob.

Return value.  0 on success, -1 on failure.


User Comments
Sign Up Login You must be logged in to post a comment.