virtual void setCompressMode(CompressMode) {}
virtual void writeName(const LabelSequence&, bool) {
// We don't need this version of writeName
+ isc_throw(Unexpected, "unexpected version of writeName is called");
}
// Called for each domain name in the RDATA, from the RDATA's toWire()
virtual void writeName(const Name& name, const bool = false) {
name.toWire(getBuffer());
}
- virtual void writeName(const LabelSequence&, const bool) {} // unused
+ virtual void writeName(const LabelSequence&, const bool) {
+ // We shouldn't use this version of writeName (and we internally
+ // control it, so we simply assert it here)
+ assert(false);
+ }
};
void
void
OldMessageRenderer::writeName(const LabelSequence&, const bool) {
- // we don't use this mode for the benchmark
+ // We shouldn't use this version of writeName (and we internally
+ // control it, so we simply assert it here)
+ assert(false);
}
}