Function

GomFromBytesFunc

Declaration

gboolean
(* GomFromBytesFunc) (
  GBytes* bytes,
  GValue* value,
  gpointer user_data
)

Description

This function converts bytes into a new value and stores it within the value box.

Parameters

bytes

Type: GBytes

The byte buffer to deserialize.

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

Type: GValue

A value to hold what is created from bytes.

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: gboolean

TRUE if successful; otherwise FALSE.