You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/06/10 17:54:07 UTC

svn commit: r545902 - in /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io: DataInputStream.cpp DataOutputStream.cpp

Author: tabish
Date: Sun Jun 10 08:54:06 2007
New Revision: 545902

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

Building up the Decaf Library

Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp?view=diff&rev=545902&r1=545901&r2=545902
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp Sun Jun 10 08:54:06 2007
@@ -44,8 +44,8 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 std::size_t DataInputStream::read( unsigned char* buffer,
-                          std::size_t offset,
-                          std::size_t length )
+                                   std::size_t offset,
+                                   std::size_t length )
     throw ( IOException, IndexOutOfBoundsException, NullPointerException ) {
 
     try {
@@ -283,8 +283,8 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 void DataInputStream::readFully( unsigned char* buffer,
-                                std::size_t offset,
-                                std::size_t length )
+                                 std::size_t offset,
+                                 std::size_t length )
     throw ( io::IOException,
             io::EOFException,
             lang::exceptions::IndexOutOfBoundsException,
@@ -316,7 +316,7 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 std::size_t DataInputStream::skip( std::size_t num )
-throw( io::IOException, lang::exceptions::UnsupportedOperationException ) {
+    throw( io::IOException, lang::exceptions::UnsupportedOperationException ) {
     try {
         std::size_t total = 0;
         std::size_t cur = 0;

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp?view=diff&rev=545902&r1=545901&r2=545902
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataOutputStream.cpp Sun Jun 10 08:54:06 2007
@@ -171,7 +171,6 @@
         unsigned int lvalue = 0;
         memcpy( &lvalue, &value, sizeof( float ) );
         this->writeInt( lvalue );
-        memcpy( &value, &lvalue, sizeof( unsigned int ) );
     }
     DECAF_CATCH_RETHROW( IOException )
     DECAF_CATCHALL_THROW( IOException )
@@ -183,7 +182,6 @@
         unsigned long long lvalue = 0;
         memcpy( &lvalue, &value, sizeof( double ) );
         this->writeLong( lvalue );
-        memcpy( &value, &lvalue, sizeof( unsigned long long ) );
     }
     DECAF_CATCH_RETHROW( IOException )
     DECAF_CATCHALL_THROW( IOException )