gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9820: add mehod to set he seek point


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9820: add mehod to set he seek pointer manually.
Date: Mon, 01 Dec 2008 08:42:49 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9820
committer: address@hidden
branch nick: rtmp
timestamp: Mon 2008-12-01 08:42:49 -0700
message:
  add mehod to set he seek pointer manually.
modified:
  libamf/buffer.h
=== modified file 'libamf/buffer.h'
--- a/libamf/buffer.h   2008-11-30 22:07:56 +0000
+++ b/libamf/buffer.h   2008-12-01 15:42:49 +0000
@@ -349,6 +349,14 @@
     ///
     /// @return The amoount of unused bytes in the Buffer.
     size_t allocated() { return (_seekptr - _data.get()); };
+
+    /// \brief Set the seek pointer
+    ///
+    /// @param ptr the real pointer to set the seek pointer to
+    ///
+    /// @return nothing
+    void setSeekPointer(boost::uint8_t *ptr) { _seekptr = ptr; };
+    void setSeekPointer(off_t offset) { _seekptr = _data.get() + offset; };
     
     ///  \brief Dump the internal data of this class in a human readable form.
     ///                This should only be used for debugging purposes.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]