5#include <Cesium3DTiles/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
21 static constexpr const char*
TypeName =
"Buffer";
30 std::optional<std::string>
uri;
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.
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.
static constexpr const char * TypeName
The original name of this type.
int64_t byteLength
The length of the buffer in bytes.
std::optional< std::string > uri
The URI (or IRI) of the file that contains the binary buffer data. Relative paths are relative to the...
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 ...