Files
UnrealEngine/Engine/Source/ThirdParty/PLCrashReporter/PLCrashReporter-1.12.0/Tests/PLCrashLogWriterEncodingTests.pb-c.c
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

316 lines
7.8 KiB
C

/* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Generated from: PLCrashLogWriterEncodingTests.proto */
/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif
#include "PLCrashLogWriterEncodingTests.pb-c.h"
void encoder_test__init
(EncoderTest *message)
{
static const EncoderTest init_value = ENCODER_TEST__INIT;
*message = init_value;
}
size_t encoder_test__get_packed_size
(const EncoderTest *message)
{
assert(message->base.descriptor == &encoder_test__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t encoder_test__pack
(const EncoderTest *message,
uint8_t *out)
{
assert(message->base.descriptor == &encoder_test__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t encoder_test__pack_to_buffer
(const EncoderTest *message,
ProtobufCBuffer *buffer)
{
assert(message->base.descriptor == &encoder_test__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
EncoderTest *
encoder_test__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (EncoderTest *)
protobuf_c_message_unpack (&encoder_test__descriptor,
allocator, len, data);
}
void encoder_test__free_unpacked
(EncoderTest *message,
ProtobufCAllocator *allocator)
{
if(!message)
return;
assert(message->base.descriptor == &encoder_test__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCEnumValue encoder_test__enum__enum_values_by_number[2] =
{
{ "Value1", "ENCODER_TEST__ENUM__Value1", 1 },
{ "Value2", "ENCODER_TEST__ENUM__Value2", 2 },
};
static const ProtobufCIntRange encoder_test__enum__value_ranges[] = {
{1, 0},{0, 2}
};
static const ProtobufCEnumValueIndex encoder_test__enum__enum_values_by_name[2] =
{
{ "Value1", 0 },
{ "Value2", 1 },
};
const ProtobufCEnumDescriptor encoder_test__enum__descriptor =
{
PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
"EncoderTest.Enum",
"Enum",
"EncoderTest__Enum",
"",
2,
encoder_test__enum__enum_values_by_number,
2,
encoder_test__enum__enum_values_by_name,
1,
encoder_test__enum__value_ranges,
NULL,NULL,NULL,NULL /* reserved[1234] */
};
static const ProtobufCFieldDescriptor encoder_test__field_descriptors[16] =
{
{
"int32",
1,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_INT32,
offsetof(EncoderTest, has_int32),
offsetof(EncoderTest, int32),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"uint32",
2,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_UINT32,
offsetof(EncoderTest, has_uint32),
offsetof(EncoderTest, uint32),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"sint32",
3,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_SINT32,
offsetof(EncoderTest, has_sint32),
offsetof(EncoderTest, sint32),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"fixed32",
4,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_FIXED32,
offsetof(EncoderTest, has_fixed32),
offsetof(EncoderTest, fixed32),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"sfixed32",
5,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_SFIXED32,
offsetof(EncoderTest, has_sfixed32),
offsetof(EncoderTest, sfixed32),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"int64",
6,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_INT64,
offsetof(EncoderTest, has_int64),
offsetof(EncoderTest, int64),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"uint64",
7,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_UINT64,
offsetof(EncoderTest, has_uint64),
offsetof(EncoderTest, uint64),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"sint64",
8,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_SINT64,
offsetof(EncoderTest, has_sint64),
offsetof(EncoderTest, sint64),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"fixed64",
9,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_FIXED64,
offsetof(EncoderTest, has_fixed64),
offsetof(EncoderTest, fixed64),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"sfixed64",
10,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_SFIXED64,
offsetof(EncoderTest, has_sfixed64),
offsetof(EncoderTest, sfixed64),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"float",
11,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_FLOAT,
offsetof(EncoderTest, has_float_),
offsetof(EncoderTest, float_),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"double",
12,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_DOUBLE,
offsetof(EncoderTest, has_double_),
offsetof(EncoderTest, double_),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"bool",
13,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_BOOL,
offsetof(EncoderTest, has_bool_),
offsetof(EncoderTest, bool_),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"enum",
14,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_ENUM,
offsetof(EncoderTest, has_enum_),
offsetof(EncoderTest, enum_),
&encoder_test__enum__descriptor,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"bytes",
15,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_BYTES,
offsetof(EncoderTest, has_bytes),
offsetof(EncoderTest, bytes),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"string",
16,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_STRING,
0, /* quantifier_offset */
offsetof(EncoderTest, string),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned encoder_test__field_indices_by_name[] = {
12, /* field[12] = bool */
14, /* field[14] = bytes */
11, /* field[11] = double */
13, /* field[13] = enum */
3, /* field[3] = fixed32 */
8, /* field[8] = fixed64 */
10, /* field[10] = float */
0, /* field[0] = int32 */
5, /* field[5] = int64 */
4, /* field[4] = sfixed32 */
9, /* field[9] = sfixed64 */
2, /* field[2] = sint32 */
7, /* field[7] = sint64 */
15, /* field[15] = string */
1, /* field[1] = uint32 */
6, /* field[6] = uint64 */
};
static const ProtobufCIntRange encoder_test__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 16 }
};
const ProtobufCMessageDescriptor encoder_test__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
"EncoderTest",
"EncoderTest",
"EncoderTest",
"",
sizeof(EncoderTest),
16,
encoder_test__field_descriptors,
encoder_test__field_indices_by_name,
1, encoder_test__number_ranges,
(ProtobufCMessageInit) encoder_test__init,
NULL,NULL,NULL /* reserved[123] */
};