summaryrefslogtreecommitdiff
path: root/ace/Message_Block.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-05-14 21:50:15 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-05-14 21:50:15 +0000
commitdbe9d0401d51658d5adb6c12c082c3f400ab28a1 (patch)
treec1516d9c6c7b50ba7836c5a4c7c9c3060f69afb4 /ace/Message_Block.h
parent6f7d490b5e6256553cc068c895154aa470aae956 (diff)
downloadATCD-dbe9d0401d51658d5adb6c12c082c3f400ab28a1.tar.gz
.
Diffstat (limited to 'ace/Message_Block.h')
-rw-r--r--ace/Message_Block.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/ace/Message_Block.h b/ace/Message_Block.h
index 57e79a0d22c..bc106eef0bd 100644
--- a/ace/Message_Block.h
+++ b/ace/Message_Block.h
@@ -302,17 +302,23 @@ public:
void length (size_t n);
// Set the length of the message
- // = Message size is the total amount of space alloted.
+ // = Set/get <Message_Block> size info.
+ size_t total_size (void) const;
+ // Get the total number of bytes in all <Message_Block>s, including
+ // chained <Message_Block>s.
+
size_t size (void) const;
- // Get the total amount of space in the message.
+ // Get the number of bytes in the top-level <Message_Block> (i.e.,
+ // does not consider the bytes in chained <Message_Block>s).
+
int size (size_t length);
- // Set the total amount of space in the message, reallocating space
- // if necessary. However, the <rd_ptr_> and <wr_ptr_> remain at the
- // original offsets into the buffer, even if it is reallocated.
- // Returns 0 if successful, else -1.
+ // Set the number of bytes in the top-level <Message_Block>,
+ // reallocating space if necessary. However, the <rd_ptr_> and
+ // <wr_ptr_> remain at the original offsets into the buffer, even if
+ // it is reallocated. Returns 0 if successful, else -1.
size_t space (void) const;
- // Get the amount of space remaining in the message.
+ // Get the number of bytes in the top-level <Message_Block>.
void crunch (void);
// Normalizes data in message block to align with the base.