Commit 1ab9b292 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

avoided byte-by-byte copy


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1097 e5f2f494-b856-4b98-b285-d166d9295462
parent b4f1b6d0
......@@ -98,10 +98,8 @@ NSEC::NSEC(InputBuffer& buffer, size_t rdata_len)
}
rdata_len -= (buffer.getPosition() - pos);
vector<uint8_t> typebits;
for (int i = 0; i < rdata_len; i++) {
typebits.push_back(buffer.readUint8());
}
vector<uint8_t> typebits(rdata_len);
buffer.readData(&typebits[0], rdata_len);
impl_ = new NSECImpl(nextname, typebits);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment