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 #define OPENVDB_VERSION_NAME
Definition: version.h:43
Name readString(std::istream &is)
Definition: Name.h:47
Definition: Exceptions.h:39
std::string Name
Definition: Name.h:44
void writeString(std::ostream &os, const Name &name)
Definition: Name.h:58
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:71