80 os <<
indent <<
"\"buffer\" : " << buffer_ <<
"," <<
nl 81 <<
indent <<
"\"byteOffset\" : " << byteOffset_ <<
"," <<
nl 82 <<
indent <<
"\"byteLength\" : " << byteLength_;
87 <<
indent <<
"\"target\" : " << target_;
label byteOffset_
Byte offset.
label & byteOffset() noexcept
Return the byte offset.
Ostream & indent(Ostream &os)
Indent stream.
void operator=(const base &gltf)
void write(Ostream &os) const
Write.
constexpr char nl
The newline '\n' character (0x0a)
label & byteLength() noexcept
Return the byte length.
label buffer_
Buffer index.
void operator=(const bufferView &bv)
void write(Ostream &os) const
Write.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
bufferView()
Default construct.
A class for handling words, derived from Foam::string.
label & target() noexcept
Return the target.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Base class for glTF entities.
label byteLength_
Byte length.
glTF buffer view - provides a view/slice of the glTF buffer
label & buffer() noexcept
Return the buffer index.