buf.insert
- method buf buf.insert( uint offset, buf value )
- method buf buf.insert( uint offset, uint ptr, uint size )
Data insertion. The method inserts one buf object into another.
method buf buf.insert (
uint offset,
buf value
)
uint offset,
buf value
)
Parameters
offset | The offset where data will be inserted. If the offset is greater than the size, data is added to the end to the buffer. |
value | The buf object with the data to be inserted. |
Return value
Returns the object which method has been called.
buf.insert
The method inserts one memory data into the buffer.
method buf buf.insert (
uint offset,
uint ptr,
uint size
)
uint offset,
uint ptr,
uint size
)
Parameters
offset | The offset where data will be inserted. If the offset is greater than the size, data is added to the end to the buffer. |
ptr | The pointer to the memory data to be inserted. |
size | The size of the data to be inserted. |
Related links | Source |