Binary :: truncate - Truncate a binary data block at the given position index
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.
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 )
- iPosition
- Position in collection
The position of an element in a collection is beginning with 0 for the first element.