diff options
author | Matthew Newhook <matthew@zeroc.com> | 2007-09-20 14:56:29 +0800 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2007-09-20 14:56:29 +0800 |
commit | 1122cb76c9d14c00e892d76ba088e33da3b81d11 (patch) | |
tree | d753f950b1dda0f6a48a431f13f21c22cb12727f /cpp/src/Ice/StreamI.cpp | |
parent | http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2478 (diff) | |
download | ice-1122cb76c9d14c00e892d76ba088e33da3b81d11.tar.bz2 ice-1122cb76c9d14c00e892d76ba088e33da3b81d11.tar.xz ice-1122cb76c9d14c00e892d76ba088e33da3b81d11.zip |
added blobject support to python.
Diffstat (limited to 'cpp/src/Ice/StreamI.cpp')
-rw-r--r-- | cpp/src/Ice/StreamI.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Ice/StreamI.cpp b/cpp/src/Ice/StreamI.cpp index 4eb5a00e3c0..989e98a9313 100644 --- a/cpp/src/Ice/StreamI.cpp +++ b/cpp/src/Ice/StreamI.cpp @@ -39,6 +39,13 @@ Ice::InputStreamI::InputStreamI(const Ice::CommunicatorPtr& communicator, const _is.i = _is.b.begin(); } +Ice::InputStreamI::InputStreamI(const Ice::CommunicatorPtr& communicator, const pair<const Byte*, const Byte*>& data) : + _communicator(communicator), _is(IceInternal::getInstance(communicator).get(), this) +{ + _is.writeBlob(data.first, data.second - data.first); + _is.i = _is.b.begin(); +} + Ice::InputStreamI::~InputStreamI() { } |