5#include <CesiumTilesetJson/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
22 static constexpr const char*
TypeName =
"Buffer";
31 std::optional<std::string>
uri;
41 std::optional<std::string>
name;
55 accum += int64_t(this->uri->capacity() *
sizeof(
char));
58 accum += int64_t(this->name->capacity() *
sizeof(
char));
Classes to represent a tileset.json from 3D Tiles 1.1.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< std::string > name
The name of the buffer.
int64_t byteLength
The length of the buffer in bytes.
BufferSpec()=default
This class is not meant to be instantiated directly. Use Buffer instead.
std::optional< std::string > uri
The URI (or IRI) of the file that contains the binary buffer data. Relative paths are relative to the...
static constexpr const char * TypeName
The original name of this type.
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...