size()  truncate()

Chapter 5: General Objects and Methods

snip()

Description

Removes part of a blob, starting at offset for a specified length. This method releases memory. If the offset plus the length is greater than the total blob size or if the length is -1, the snip() method removes data from the offset position to the end of the blob.

Syntax

snip(int offset, int length);

Parameter

Description

offset

Position to start removing data. The first character in a blob is always at offset 0.

length

Number of characters to remove.

Return value

Integer. Returns the new blob size, if successful, and the original blob size, if failed.

Usage

Pointer to object

Object

pb->snip(5, 20);

myblob.snip(5,20);





Copyright © 2005. Sybase Inc. All rights reserved. truncate()

View this book as PDF