51 os.write(
reinterpret_cast<char*
>(&s),
sizeof(std::string::size_type));
57 os.write(
reinterpret_cast<char*
>(
61 pvmd).is_data_type_signed),
64 pvmd).data_type_size_in_bytes),
65 sizeof(
unsigned long));
67 pvmd).number_of_components),
68 sizeof(
unsigned long));
69 os.write(
reinterpret_cast<char*
>(
71 sizeof(
unsigned long));
77 "name: '{:s}':\t is_int_data_type: {:d}, is_data_type_signed: "
78 "{:d}, data_type_size_in_bytes: {:d}, number of components / "
79 "tuples: {:d} / {:d}",
89 std::string::size_type s = 0;
90 if (!is.read(
reinterpret_cast<char*
>(&s),
sizeof(std::string::size_type)))
92 return std::optional<PropertyVectorMetaData>();
96 char *dummy =
new char[s];
97 if (!is.read(dummy, s))
104 if(!is.read(
reinterpret_cast<char*
>(&pvmd.
is_int_type),
sizeof(
bool)))
109 sizeof(
unsigned long)))
112 sizeof(
unsigned long)))
115 sizeof(
unsigned long)))
117 return std::optional<PropertyVectorMetaData>(pvmd);
129 os.write(
reinterpret_cast<char*
>(
132 sizeof(
unsigned long));
133 os.write(
reinterpret_cast<char*
>(
136 sizeof(
unsigned long));
139inline std::optional<PropertyVectorPartitionMetaData>
143 if (!is.read(
reinterpret_cast<char*
>(&pvpmd.
offset),
sizeof(
unsigned long)))
145 return std::optional<PropertyVectorPartitionMetaData>();
148 sizeof(
unsigned long)))
150 return std::optional<PropertyVectorPartitionMetaData>();
152 return std::optional<PropertyVectorPartitionMetaData>(pvpmd);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
void writePropertyVectorPartitionMetaData(std::ostream &os, PropertyVectorPartitionMetaData const &pvpmd)
void writePropertyVectorMetaData(std::ostream &os, PropertyVectorMetaData const &pvmd)
std::optional< PropertyVectorMetaData > readPropertyVectorMetaData(std::istream &is)
std::optional< PropertyVectorPartitionMetaData > readPropertyVectorPartitionMetaData(std::istream &is)