[prev in list] [next in list] [prev in thread] [next in thread]
List: gnash-commit
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9790: add method to get the
From: rob () welcomehome ! org
Date: 2008-11-26 22:58:25
Message-ID: E1L5lGN-0006PZ-Et () sv ! gnu ! org
[Download RAW message or body]
------------------------------------------------------------
revno: 9790
committer: rob@welcomehome.org
branch nick: rtmp
timestamp: Wed 2008-11-26 15:58:25 -0700
message:
add method to get the amount of allocated bytes.
modified:
libamf/buffer.h
["r9790.diff" (r9790.diff)]
=== modified file 'libamf/buffer.h'
--- a/libamf/buffer.h 2008-11-26 17:11:17 +0000
+++ b/libamf/buffer.h 2008-11-26 22:58:25 +0000
@@ -340,6 +340,13 @@
/// @return The amoount of unused bytes in the Buffer.
size_t spaceLeft() { return (_nbytes - (_seekptr - _data.get())); };
+ /// \brief How much room has been allocated before the seek pointer.
+ /// This is primarily used to see if the buffer is fully
+ /// populated with data before appending more.
+ ///
+ /// @return The amoount of unused bytes in the Buffer.
+ size_t allocated() { return (_seekptr - _data.get()); };
+
/// \brief Dump the internal data of this class in a human readable form.
/// This should only be used for debugging purposes.
void dump() const { dump(std::cerr); }
_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic