CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
memory_byte_converter.h
1#pragma once
2
3#include <system/details/pointer_collection_helpers.h>
4#include <cstdint>
5
6#include "system/text/json/serialization/json_converter.h"
7#include "system/text/json/serialization/json_converter_of_t.h"
8
9namespace System
10{
11namespace Text
12{
13namespace Json
14{
15class JsonSerializerOptions;
16namespace Serialization
17{
18template <typename> class JsonConverter;
19enum class JsonNumberHandling;
20enum class JsonValueType : uint8_t;
21} // namespace Serialization
22class Utf8JsonReader;
23class Utf8JsonWriter;
24} // namespace Json
25} // namespace Text
26class TypeInfo;
27} // namespace System
28
29namespace System {
30
31namespace Text {
32
33namespace Json {
34
35namespace Serialization {
36
37namespace Converters {
38
39class MemoryByteConverter final : public JsonConverter<Memory<uint8_t>>
40{
43
44 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45 RTTI_INFO_DECL();
46
47public:
48
49 bool get_HandleNull() override;
50
54 void SetTemplateWeakPtr(uint32_t argument) override;
55
56};
57
58} // namespace Converters
59} // namespace Serialization
60} // namespace Json
61} // namespace Text
62} // namespace System
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
JsonValueType GetSupportedJsonValueTypes(JsonNumberHandling _) override
Memory< uint8_t > Read(Utf8JsonReader &reader, const System::TypeInfo &typeToConvert, System::SharedPtr< JsonSerializerOptions > options) override
void Write(System::SharedPtr< Utf8JsonWriter > writer, Memory< uint8_t > value, System::SharedPtr< JsonSerializerOptions > options) override
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: json_converter_of_t.h:80
Definition: utf8_json_reader.h:78
Represents a particular type and provides information about it.
Definition: type_info.h:109
@ Text
Defines color adjustment information for text.
@ TypeInfo
Specifies that the member is a type.
JsonValueType
Definition: json_value_type.h:15
JsonNumberHandling
Definition: json_number_handling.h:16
Definition: db_command.h:9