slice


Description:

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

Parameters:

this

A Buffer.

offset

An offset in the buffer data in byte.

size

The number of bytes of the sliced data.

Returns:

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