18 #ifndef YAMI4INDUSTRY_SERIALIZATION_H
19 #define YAMI4INDUSTRY_SERIALIZATION_H
46 size_t * buffer_position,
64 size_t * buffer_position,
81 size_t * buffer_position,
98 size_t * buffer_position,
115 size_t * buffer_position,
132 size_t * buffer_position,
135 #ifdef YAMI4_WITH_DOUBLE_FLOAT
150 enum yami_result yami_put_double_float(uint8_t buffer[],
size_t buffer_size,
151 size_t * buffer_position,
167 enum yami_result yami_get_double_float(
const uint8_t buffer[],
size_t buffer_size,
168 size_t * buffer_position,
191 size_t * buffer_position,
213 size_t * buffer_position,
214 char value[],
size_t value_length);
232 size_t * buffer_position,
233 const uint8_t value[],
size_t value_length);
253 size_t * buffer_position,
254 uint8_t value[],
size_t value_length);
274 size_t * buffer_position,
275 const int32_t value[],
size_t value_length);
296 size_t * buffer_position,
297 int32_t value[],
size_t value_length);
315 size_t * buffer_position,
316 const int32_t value[],
size_t value_length);
336 size_t * buffer_position,
337 int32_t value[],
size_t value_length);
355 size_t * buffer_position,
356 const int64_t value[],
size_t value_length);
376 size_t * buffer_position,
377 int64_t value[],
size_t value_length);
379 #ifdef YAMI4_WITH_DOUBLE_FLOAT
396 enum yami_result yami_put_double_float_array(uint8_t buffer[],
size_t buffer_size,
397 size_t * buffer_position,
398 const double value[],
size_t value_length);
417 enum yami_result yami_get_raw_double_float_array(
const uint8_t buffer[],
size_t buffer_size,
418 size_t * buffer_position,
419 double value[],
size_t value_length);
437 size_t * buffer_position,
456 size_t * buffer_position,
457 const char object_name[],
const char message_name[], int64_t message_id);
474 size_t * buffer_position,
492 size_t * buffer_position,
493 const char reason[], int64_t message_id);
521 size_t * buffer_position,
522 char out_header_type[],
size_t header_type_size,
523 char out_object_name[],
size_t object_name_size,
524 char out_message_name[],
size_t message_name_size,
525 char out_reason[],
size_t reason_size,
526 int64_t * out_message_id);
529 uint32_t message_id,
size_t message_header_size,
size_t frame_payload_size);
532 size_t * buffer_position,
533 uint32_t * message_id,
534 size_t * message_header_size,
size_t * frame_payload_size);
enum yami_result yami_put_binary(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, const uint8_t value[], size_t value_length)
Places binary value in the serialization buffer.
Definition: serialization.c:571
yami_parameter_type
Definition: common.h:43
enum yami_result yami_skip_field(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, enum yami_parameter_type type)
Skips the given field in serialization buffer.
Definition: serialization.c:1027
enum yami_result yami_parse_frame_header(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, uint32_t *message_id, size_t *message_header_size, size_t *frame_payload_size)
Definition: serialization.c:1709
void yami_fill_frame_header(uint8_t buffer[], uint32_t message_id, size_t message_header_size, size_t frame_payload_size)
Definition: serialization.c:1691
enum yami_result yami_get_raw_long_long_array(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, int64_t value[], size_t value_length)
Reads raw long long array from the serialization buffer.
Definition: serialization.c:912
enum yami_result yami_get_raw_integer_array(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, int32_t value[], size_t value_length)
Reads raw integer array from the serialization buffer.
Definition: serialization.c:836
yami_result
Definition: common.h:28
enum yami_result yami_get_raw_binary(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, uint8_t value[], size_t value_length)
Reads raw binary value from the serialization buffer.
Definition: serialization.c:622
enum yami_result yami_put_long_long_array(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, const int64_t value[], size_t value_length)
Places long long array in the serialization buffer.
Definition: serialization.c:871
enum yami_result yami_get_type(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, enum yami_parameter_type *type)
Reads type code from the serialization buffer.
Definition: serialization.c:102
enum yami_result yami_put_integer_array(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, const int32_t value[], size_t value_length)
Places integer array in the serialization buffer.
Definition: serialization.c:795
enum yami_result yami_parse_message_header(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, char out_header_type[], size_t header_type_size, char out_object_name[], size_t object_name_size, char out_message_name[], size_t message_name_size, char out_reason[], size_t reason_size, int64_t *out_message_id)
Parses message header.
Definition: serialization.c:1355
enum yami_result yami_fill_exception_header(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, const char reason[], int64_t message_id)
Places exception header fields in the serialization buffer.
Definition: serialization.c:1281
enum yami_result yami_fill_message_header(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, const char object_name[], const char message_name[], int64_t message_id)
Places message header fields in the serialization buffer.
Definition: serialization.c:1157
enum yami_result yami_get_raw_boolean_array(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, int32_t value[], size_t value_length)
Reads raw boolean array from the serialization buffer.
Definition: serialization.c:735
enum yami_result yami_put_cstring(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, const char value[])
Places string value in the serialization buffer.
Definition: serialization.c:484
enum yami_result yami_put_type(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, enum yami_parameter_type type)
Places type indicator value in the serialization buffer.
Definition: serialization.c:27
enum yami_result yami_put_long_long(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, int64_t value)
Places long long value in the serialization buffer.
Definition: serialization.c:287
enum yami_result yami_get_integer(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, int32_t *value)
Reads integer value from the serialization buffer.
Definition: serialization.c:236
enum yami_result yami_put_boolean_array(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, const int32_t value[], size_t value_length)
Places boolean array in the serialization buffer.
Definition: serialization.c:654
enum yami_result yami_get_long_long(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, int64_t *value)
Reads long long value from the serialization buffer.
Definition: serialization.c:351
void yami_fill_reply_header(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, int64_t message_id)
Places reply header fields in the serialization buffer.
Definition: serialization.c:1251
enum yami_result yami_put_integer(uint8_t buffer[], size_t buffer_size, size_t *buffer_position, int32_t value)
Places integer value in the serialization buffer.
Definition: serialization.c:184
enum yami_result yami_get_raw_cstring(const uint8_t buffer[], size_t buffer_size, size_t *buffer_position, char value[], size_t value_length)
Reads raw string value from the serialization buffer.
Definition: serialization.c:537