gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/rtmp r9810: add accessor to directly set t


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9810: add accessor to directly set the address in a Buffer.
Date: Sun, 30 Nov 2008 15:07:56 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9810
committer: address@hidden
branch nick: rtmp
timestamp: Sun 2008-11-30 15:07:56 -0700
message:
  add accessor to directly set the address in a Buffer.
modified:
  libamf/buffer.h
=== modified file 'libamf/buffer.h'
--- a/libamf/buffer.h   2008-11-26 22:58:25 +0000
+++ b/libamf/buffer.h   2008-11-30 22:07:56 +0000
@@ -306,6 +306,9 @@
     ///
     /// @return The size of the Buffer.
     void setSize(size_t nbytes) { _nbytes = nbytes; };
+
+    /// \brief Set the real pointer to a block of Memory.
+    void setPointer(boost::uint8_t *ptr) { _data.reset(ptr); };
     
     /// \brief Test equivalance against another Buffer.
     ///                This compares all the data on the current Buffer with
@@ -363,6 +366,7 @@
     ///        \brief This is the container of the actual data in this
     ///                Buffer.
     boost::scoped_array<gnash::Network::byte_t> _data;
+    
     /// \var _nbytes
     ///        \brief This is the total allocated size of the Buffer.
     size_t         _nbytes;


reply via email to

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