/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: DoubleArray.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "DoubleArray.pb-c.h" void double_array__init (DoubleArray *message) { static const DoubleArray init_value = DOUBLE_ARRAY__INIT; *message = init_value; } size_t double_array__get_packed_size (const DoubleArray *message) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t double_array__pack (const DoubleArray *message, uint8_t *out) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t double_array__pack_to_buffer (const DoubleArray *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } DoubleArray * double_array__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (DoubleArray *) protobuf_c_message_unpack (&double_array__descriptor, allocator, len, data); } void double_array__free_unpacked (DoubleArray *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &double_array__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor double_array__field_descriptors[1] = { { "Data", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DoubleArray, n_data), offsetof(DoubleArray, data), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned double_array__field_indices_by_name[] = { 0, /* field[0] = Data */ }; static const ProtobufCIntRange double_array__number_ranges[1 + 1] = { { 1, 0 }, { 0, 1 } }; const ProtobufCMessageDescriptor double_array__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "DoubleArray", "DoubleArray", "DoubleArray", "", sizeof(DoubleArray), 1, double_array__field_descriptors, double_array__field_indices_by_name, 1, double_array__number_ranges, (ProtobufCMessageInit) double_array__init, NULL,NULL,NULL /* reserved[123] */ };