libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Json.h
Go to the documentation of this file.
1#pragma once
2
4#include <nlohmann/json.hpp>
5
6namespace Ship {
7
15class Json final : public Resource<void> {
16 public:
17 using Resource::Resource;
18
21
26 void* GetPointer() override;
27
32 size_t GetPointerSize() override;
33
35 nlohmann::json Data;
37 size_t DataSize;
38};
39}; // namespace Ship
Resource type representing a parsed JSON document.
Definition Json.h:15
nlohmann::json Data
Parsed JSON document.
Definition Json.h:35
Json()
Default-constructs an empty Json resource.
size_t DataSize
Size in bytes of the original serialized JSON string.
Definition Json.h:37
void * GetPointer() override
Returns a pointer to the nlohmann::json data object.
size_t GetPointerSize() override
Returns the size of the serialized JSON data in bytes.
Typed resource base class that provides a strongly-typed pointer accessor.
Definition Resource.h:73
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14