5#include <Cesium3DTiles/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
21 static constexpr const char* TypeName =
"Buffer";
30 std::optional<std::string>
uri;
35 int64_t byteLength = int64_t();
40 std::optional<std::string>
name;
54 accum += int64_t(this->uri->capacity() *
sizeof(
char));
57 accum += int64_t(this->name->capacity() *
sizeof(
char));
Classes for using 3D Tiles.
A buffer is a binary blob. It is either the binary chunk of the subtree file, or an external buffer r...
BufferSpec()=default
This class is not meant to be instantiated directly. Use Buffer instead.
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.
std::optional< std::string > uri
The URI (or IRI) of the file that contains the binary buffer data. Relative paths are relative to the...
This class is not meant to be instantiated directly. Use Buffer instead.
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 ...