cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
Loading...
Searching...
No Matches
object_data.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
20#pragma once
21
22#include <cstddef>
23#include <cstdint>
24
26
27namespace msgpack_light::details {
28
29struct object_data;
30
36 char* data;
37
39 std::size_t size;
40};
41
47 unsigned char* data;
48
50 std::size_t size;
51};
52
56struct array_data {
59
61 std::size_t size;
62};
63
65
69struct map_data {
72
74 std::size_t size;
75};
76
82 std::int8_t type;
83
85 unsigned char* data;
86
88 std::size_t size;
89};
90
131
142
143} // namespace msgpack_light::details
Namespace of internal implementations.
Definition binary.h:35
object_data_type
Enumeration to specify types of data in objects.
Definition of object_type enumeration.
Struct of data of arrays.
Definition object_data.h:56
std::size_t size
Size of the data.
Definition object_data.h:61
Struct of data of binaries.
Definition object_data.h:45
std::size_t size
Size of the data.
Definition object_data.h:50
Struct of data of extensions.
Definition object_data.h:80
std::size_t size
Size of the data.
Definition object_data.h:88
Struct of data of key-value pairs in maps.
Struct of data of maps.
Definition object_data.h:69
std::size_t size
Size of the data.
Definition object_data.h:74
key_value_pair_data * data
Data.
Definition object_data.h:71
Struct of data of objects in MessagePack.
Definition object_data.h:94
extension_data extension_value
Extension.
std::int64_t signed_integer_value
Signed integer.
double double_value
64-bit floating-point numbers.
union msgpack_light::details::object_data::@227127335344143142004214331276031357231211344336 data
Data.
object_data_type type
Type of the data.
float float_value
32-bit floating-point numbers.
std::uint64_t unsigned_integer_value
Unsigned integer.
Definition object_data.h:98
Struct of data of strings.
Definition object_data.h:34
std::size_t size
Size of the data.
Definition object_data.h:39