Gentee Programming Language > Documentation > Libraries Download documentation

buf.insert

The method inserts one buf object into another.
 
buf buf.insert(
      uint   offset,
      buf   value
)

Parameters

offsetThe offset where data will be inserted. If the offset is greater than the size, data is added to the end to the buffer.
valueThe buf object with the data to be inserted.

Return value

Returns the object which method has been called.

See also

    Buffer - binary data


 Copyright © 2004-2006 Gentee Inc. All rights reserved.