company logo

Binary :: truncate - Truncate a binary data block

The function truncates the binary data block and returns a reference to the binary data block.

Return value:  Binary data block handle ( odaba::Binary & )

Constant reference to a binary data block handle, which may contain binary data up to 2 GB.

Implementation details

odaba::Binary & Binary  :: truncate ( int32 iPosition )

The function truncates the binary data block at position passed in iPosition and returns a reference to the binary data block.

If the value specified in iPosition exceeds the current data length, nothing is done. When iPosition is negative, the function throws an exception.

  • iPosition - Position in collection

    The position of an element in a collection is beginning with 0 for the first element.