Commit 74296ec2 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

added clear() method


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@584 e5f2f494-b856-4b98-b285-d166d9295462
parent 4becc586
......@@ -162,6 +162,14 @@ MessageRenderer::skip(size_t len)
impl_->buffer_.skip(len);
}
void
MessageRenderer::clear()
{
impl_->buffer_.clear();
impl_->nbuffer_.clear();
impl_->nodeset_.clear();
}
void
MessageRenderer::writeUint8(uint8_t data)
{
......
......@@ -113,6 +113,11 @@ public:
///
/// \param len The length of the gap to be inserted in bytes.
void skip(size_t len);
/// \brief Clear the internal buffer and other internal resources.
///
/// This method can be used to re-initialize and reuse the renderer
/// without constructing a new one.
void clear();
/// \brief Write an unsigned 8-bit integer into the internal buffer.
///
/// \param data The 8-bit integer to be written into the internal buffer.
......
Markdown is supported
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