Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.18.22 NdbBlob::truncate()

Description.  This method is used to truncate a blob to a given length.

Signature. 

int truncate
    (
      Uint64 length = 0
    )

Parameters.  truncate() takes a single parameter which specifies the new length to which the blob is to be truncated. This method has no effect if length is greater than the blob's current length (which you can check using getLength()).

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