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 void writeString(std::ostream &os, const Name &name)
Definition: Name.h:58
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:136
Definition: Exceptions.h:40
Library and file format version numbers.
Name readString(std::istream &is)
Definition: Name.h:47
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:188
std::string Name
Definition: Name.h:44