Method

ArrowBufferslice

since: 0.3.0

Declaration [src]

GArrowBuffer*
garrow_buffer_slice (
  GArrowBuffer* buffer,
  gint64 offset,
  gint64 size
)

Description

No description available.

Available since: 0.3.0

Parameters

offset

Type: gint64

An offset in the buffer data in byte.

size

Type: gint64

The number of bytes of the sliced data.

Return value

Type: GArrowBuffer

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

The caller of the method takes ownership of the data, and is responsible for freeing it.