activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r598752 - in /activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio: Buffer.cpp Buffer.h ByteBuffer.cpp
Date Tue, 27 Nov 2007 20:04:49 GMT
Author: tabish
Date: Tue Nov 27 12:04:44 2007
New Revision: 598752

URL: http://svn.apache.org/viewvc?rev=598752&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Starting the NIO implementation

Modified:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.cpp
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.h
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/ByteBuffer.cpp

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.cpp?rev=598752&r1=598751&r2=598752&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.cpp Tue Nov 27 12:04:44 2007
@@ -33,6 +33,15 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
+Buffer::Buffer( const Buffer& other ) {
+
+    this->_limit = other._limit;
+    this->_position = other._position;
+    this->_mark = other._mark;
+    this->_markSet = other._markSet;
+}
+
+////////////////////////////////////////////////////////////////////////////////
 Buffer& Buffer::position( std::size_t newPosition )
     throw( lang::exceptions::IllegalArgumentException ) {
 

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.h?rev=598752&r1=598751&r2=598752&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.h (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/Buffer.h Tue Nov 27 12:04:44 2007
@@ -133,6 +133,7 @@
     public:
 
         Buffer( std::size_t capactiy );
+        Buffer( const Buffer& other );
         virtual ~Buffer() {}
 
     public:

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/ByteBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/ByteBuffer.cpp?rev=598752&r1=598751&r2=598752&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/ByteBuffer.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/ByteBuffer.cpp Tue Nov 27 12:04:44
2007
@@ -80,7 +80,7 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 ByteBuffer::ByteBuffer( const ByteBuffer& other )
- :  Buffer( other.capacity() ),
+ :  Buffer( other ),
     Comparable<ByteBuffer>() {
 
     // get the byte buffer of the caller and take a reference



Mime
View raw message