TutBufCloneRange create a new buffer containing a portion of an existing buffer
src
T_BUF object to provide data
begin
start of block to copy
end
end of block to copy
A new T_BUF object containing the copied data if successful, NULL
otherwise.
None
TutBufCloneRange creates a new buffer and copies a byte range from an existing buffer into the new buffer. The byte range in the source buffer starts at begin
, and ends at end
. If end
is -1
, then the complete block from begin
to the end of the buffer is copied.
None
TutBufCreate, TutBufDestroy, TutBufAppendRange
This example copies eight bytes from the buffer src
, starting at byte 3, to a new buffer:
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |