BIND 10 trac536, updated. 501462d7b9850ddca6a3d0a2c7043e3fa0923759 [trac536] Some comments

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Jan 31 16:25:58 UTC 2011


The branch, trac536 has been updated
       via  501462d7b9850ddca6a3d0a2c7043e3fa0923759 (commit)
      from  044c080dd3fc084f3ee7dcdcc70c8dc328bee9df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 501462d7b9850ddca6a3d0a2c7043e3fa0923759
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Mon Jan 31 17:25:39 2011 +0100

    [trac536] Some comments

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/buffer.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/buffer.h b/src/lib/dns/buffer.h
index b22eb53..39ca00b 100644
--- a/src/lib/dns/buffer.h
+++ b/src/lib/dns/buffer.h
@@ -314,6 +314,7 @@ public:
         memcpy(buffer_, other.buffer_, size_);
     }
 
+    /// \brief Destructor
     ~ OutputBuffer() {
         free(buffer_);
     }
@@ -463,9 +464,13 @@ public:
     //@}
 
 private:
+    // The actual data
     uint8_t* buffer_;
+    // How many bytes are used
     size_t size_;
+    // How many bytes do we have preallocated (eg. the capacity)
     size_t allocated_;
+    // Make sure at last needed_size bytes are allocated in the buffer
     void ensureAllocated(size_t needed_size) {
         if (allocated_ < needed_size) {
             // Guess some bigger size




More information about the bind10-changes mailing list