diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-02-09 18:33:48 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-02-09 18:33:48 +0000 |
commit | 44955d26e8b39a524e75752e3b495c22f5139933 (patch) | |
tree | 7477c99997792c3b4c8990872c544dfcc44c2120 /cpp/demo/Ice/throughput/Client.cpp | |
parent | Replace RWRecMutex by Mutex (diff) | |
download | ice-44955d26e8b39a524e75752e3b495c22f5139933.tar.bz2 ice-44955d26e8b39a524e75752e3b495c22f5139933.tar.xz ice-44955d26e8b39a524e75752e3b495c22f5139933.zip |
Do zero copy of basic sequence types on 32 bit intel platforms
Diffstat (limited to 'cpp/demo/Ice/throughput/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/throughput/Client.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/demo/Ice/throughput/Client.cpp b/cpp/demo/Ice/throughput/Client.cpp index e61514e5a7e..24cb4732733 100644 --- a/cpp/demo/Ice/throughput/Client.cpp +++ b/cpp/demo/Ice/throughput/Client.cpp @@ -55,6 +55,9 @@ ThroughputClient::run(int argc, char* argv[]) ThroughputPrx throughputOneway = ThroughputPrx::uncheckedCast(throughput->ice_oneway()); ByteSeq byteSeq(ByteSeqSize, 0); + pair<const Ice::Byte*, const Ice::Byte*> byteArr; + byteArr.first = &byteSeq[0]; + byteArr.second = byteArr.first + byteSeq.size(); StringSeq stringSeq(StringSeqSize, "hello"); @@ -200,13 +203,13 @@ ThroughputClient::run(int argc, char* argv[]) { case 't': { - throughput->sendByteSeq(byteSeq); + throughput->sendByteSeq(byteArr); break; } case 'o': { - throughputOneway->sendByteSeq(byteSeq); + throughputOneway->sendByteSeq(byteArr); break; } |