uint16_t d_pos;
+ bool eof() { return true; };
+
private:
uint16_t d_startrecordpos; // needed for getBlob later on
uint16_t d_recordlen; // ditto
void RNAME##RecordContent::xfrPacket(Convertor& conv) \
{ \
CONV; \
+ if (conv.eof() == false) throw MOADNSException("All data was not consumed"); \
} \
struct EDNSOpts
{
return d_content;
}
+ bool eof() { return true; } // we don't know how long the record should be
private:
vector <uint8_t>& d_content;
void xfrText(const string& val, bool multi=false);
void xfrBlob(const string& val, int len=-1);
void xfrHexBlob(const string& val, bool keepReading=false);
-
+ bool eof() { return true; };
private:
string& d_string;
};