31 #ifndef OPENVDB_UTIL_NAME_HAS_BEEN_INCLUDED 32 #define OPENVDB_UTIL_NAME_HAS_BEEN_INCLUDED 50 is.read(reinterpret_cast<char*>(&
size),
sizeof(uint32_t));
51 std::string buffer(
size,
' ');
52 if (
size>0) is.read(&buffer[0],
size);
60 uint32_t
size = uint32_t(name.size());
61 os.write(reinterpret_cast<char*>(&
size),
sizeof(uint32_t));
62 os.write(&name[0],
size);
68 #endif // OPENVDB_UTIL_NAME_HAS_BEEN_INCLUDED Name readString(std::istream &is)
Definition: Name.h:47
std::string Name
Definition: Name.h:44
#define OPENVDB_VERSION_NAME
Definition: version.h:43
Definition: Exceptions.h:39
void writeString(std::ostream &os, const Name &name)
Definition: Name.h:58
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:71
static constexpr size_t size
The size of a LeafBuffer when LeafBuffer::mOutOfCore is atomic.
Definition: LeafBuffer.h:85