2018-02-22 07:24:51 +00:00
|
|
|
#include "Water.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace DataSpec::DNAMP1 {
|
2018-02-22 07:24:51 +00:00
|
|
|
|
|
|
|
template <>
|
2018-12-08 05:30:43 +00:00
|
|
|
void Water::UnusedBitset::Enumerate<BigDNA::Read>(typename Read::StreamT& in) {
|
|
|
|
if (in.readBool()) {
|
|
|
|
atUint32 bitVal0 = in.readUint16Big();
|
|
|
|
atUint32 bitVal1 = in.readUint16Big();
|
|
|
|
atUint32 len = ((bitVal0 * bitVal1) + 31) / 31;
|
|
|
|
in.seek(len * 4);
|
|
|
|
}
|
2018-02-22 07:24:51 +00:00
|
|
|
}
|
|
|
|
template <>
|
2018-12-08 05:30:43 +00:00
|
|
|
void Water::UnusedBitset::Enumerate<BigDNA::Write>(typename Write::StreamT& out) {
|
|
|
|
out.writeBool(false);
|
|
|
|
}
|
2018-02-22 07:24:51 +00:00
|
|
|
template <>
|
|
|
|
void Water::UnusedBitset::Enumerate<BigDNA::ReadYaml>(typename ReadYaml::StreamT& r) {}
|
|
|
|
template <>
|
|
|
|
void Water::UnusedBitset::Enumerate<BigDNA::WriteYaml>(typename WriteYaml::StreamT& w) {}
|
|
|
|
template <>
|
2018-12-08 05:30:43 +00:00
|
|
|
void Water::UnusedBitset::Enumerate<BigDNA::BinarySize>(typename BinarySize::StreamT& s) {
|
|
|
|
s += 1;
|
2018-02-22 07:24:51 +00:00
|
|
|
}
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace DataSpec::DNAMP1
|