5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/NamedObject.h>
20 static constexpr const char* TypeName =
"Buffer";
28 std::optional<std::string>
uri;
33 int64_t byteLength = int64_t();
47 accum += int64_t(this->uri->capacity() *
sizeof(
char));
Classes for working with glTF models.
A buffer points to binary geometry, animation, or skins.
std::optional< std::string > uri
The URI (or IRI) of the buffer.
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.
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,...