CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
byte_array_converter.h
1#pragma once
2
3#include <system/details/pointer_collection_helpers.h>
4#include <system/array.h>
5#include <cstdint>
6
7#include "system/text/json/serialization/json_converter.h"
8#include "system/text/json/serialization/json_converter_of_t.h"
9
10namespace System
11{
12namespace Text
13{
14namespace Json
15{
16class JsonSerializerOptions;
17namespace Serialization
18{
19template <typename> class JsonConverter;
20enum class JsonNumberHandling;
21enum class JsonValueType : uint8_t;
22} // namespace Serialization
23class Utf8JsonReader;
24class Utf8JsonWriter;
25} // namespace Json
26} // namespace Text
27class TypeInfo;
28} // namespace System
29
30namespace System {
31
32namespace Text {
33
34namespace Json {
35
36namespace Serialization {
37
38namespace Converters {
39
40class ByteArrayConverter final : public JsonConverter<System::SharedPtr<Array<uint8_t>>>
41{
44
45 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
46 RTTI_INFO_DECL();
47
48public:
49
53 void SetTemplateWeakPtr(uint32_t argument) override;
54
55};
56
57} // namespace Converters
58} // namespace Serialization
59} // namespace Json
60} // namespace Text
61} // namespace System
Class that represents an array data structure. Objects of this class should only be allocated using S...
Definition: array.h:296
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
void Write(System::SharedPtr< Utf8JsonWriter > writer, System::SharedPtr< Array< uint8_t > > value, System::SharedPtr< JsonSerializerOptions > options) override
JsonValueType GetSupportedJsonValueTypes(JsonNumberHandling _) override
System::SharedPtr< Array< uint8_t > > Read(Utf8JsonReader &reader, const System::TypeInfo &typeToConvert, 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