Hyperon C
Loading...
Searching...
No Matches
serializer_api_t Struct Reference

A table of functions to receive values encoded as specific primitive types. More...

#include <hyperon.h>

Public Attributes

enum serial_result_t(* serialize_bool )(void *context, bool v)
 Serialize C bool value.
enum serial_result_t(* serialize_longlong )(void *context, long long v)
 Serialize C long long value.
enum serial_result_t(* serialize_double )(void *context, double v)
 Serialize C double value.
enum serial_result_t(* serialize_str )(void *context, const char *v)
 Serialize C char[] value.

Detailed Description

A table of functions to receive values encoded as specific primitive types.

Member Data Documentation

◆ serialize_bool

enum serial_result_t(* serializer_api_t::serialize_bool) (void *context, bool v)

Serialize C bool value.

Parameters
[in]contextA caller-defined object to pass to functions in the api, to receive the encoded value(s)
[in]vA value to serialize
Returns
A serial_result_t indicating whether the serialize operation was successful

◆ serialize_double

enum serial_result_t(* serializer_api_t::serialize_double) (void *context, double v)

Serialize C double value.

Parameters
[in]contextA caller-defined object to pass to functions in the api, to receive the encoded value(s)
[in]vA value to serialize
Returns
A serial_result_t indicating whether the serialize operation was successful

◆ serialize_longlong

enum serial_result_t(* serializer_api_t::serialize_longlong) (void *context, long long v)

Serialize C long long value.

Parameters
[in]contextA caller-defined object to pass to functions in the api, to receive the encoded value(s)
[in]vA value to serialize
Returns
A serial_result_t indicating whether the serialize operation was successful

◆ serialize_str

enum serial_result_t(* serializer_api_t::serialize_str) (void *context, const char *v)

Serialize C char[] value.

Parameters
[in]contextA caller-defined object to pass to functions in the api, to receive the encoded value(s)
[in]vA value to serialize
Returns
A serial_result_t indicating whether the serialize operation was successful

The documentation for this struct was generated from the following file: