slice


Description:

[ Version ( since = "0.3.0" ) ]
public MutableBuffer slice (int64 offset, int64 size)

Parameters:

this

A MutableBuffer.

offset

An offset in the buffer data in byte.

size

The number of bytes of the sliced data.

Returns:

A newly created MutableBuffer that shares data of the base MutableBuffer. The created MutableBuffer has data start with offset from the base buffer data and are the specified bytes size.