Function

GomToBytesFunc

Declaration

GBytes*
(* GomToBytesFunc) (
  const GValue* value,
  gpointer user_data
)

Description

This function is responsible for converting a GValue into a byte buffer suitable for storage. This is generally used when you have a blob field in the storage layer.

Parameters

value

Type: GValue

The value to transform.

The data is owned by the caller of the function.
user_data

Type: gpointer

Data supplied to closure.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: GBytes

A GBytes if successful; otherwise NULL to indicate eror.

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