Hex.Buffer.get_data
Description: Reference for Hex.Buffer.get_data

### Virtual Method

# Hex Bufferget_data

#### Declaration

    char*
    get_data (
      HexBuffer* self,
      gint64 offset,
      size_t len
    )

#### Description

Get data of a particular size at a particular offset within the buffer.

#### Parameters

`offset`

  Type: `gint64`

  Offset position of the data being requested within the payload.

`len`

  Type: `size_t`

  Size in bytes of the requested data.

#### Return value

Type: `char*`

A pointer to the data requested, to be freed with g_free().

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.