5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/NamedObject.h>
20 static constexpr const char*
TypeName =
"Buffer";
28 std::optional<std::string>
uri;
47 accum += int64_t(this->uri->capacity() *
sizeof(
char));
Classes for working with glTF models.
static constexpr const char * TypeName
The original name of this type.
std::optional< std::string > uri
The URI (or IRI) of the buffer.
int64_t byteLength
The length of the buffer in bytes.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
BufferSpec()=default
This class is not meant to be instantiated directly. Use Buffer instead.
The base class for objects in a glTF that have a name.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...