zeroc-ice 3.7.0 → 3.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ICE_LICENSE +1 -1
- data/bin/slice2rb +1 -6
- data/ext/Communicator.cpp +78 -10
- data/ext/Communicator.h +1 -6
- data/ext/Config.h +35 -6
- data/ext/Connection.cpp +22 -11
- data/ext/Connection.h +4 -6
- data/ext/Endpoint.cpp +1 -10
- data/ext/Endpoint.h +1 -6
- data/ext/ImplicitContext.cpp +1 -6
- data/ext/ImplicitContext.h +1 -6
- data/ext/Init.cpp +1 -6
- data/ext/Logger.cpp +1 -6
- data/ext/Logger.h +1 -6
- data/ext/Operation.cpp +6 -11
- data/ext/Operation.h +1 -6
- data/ext/Properties.cpp +3 -8
- data/ext/Properties.h +1 -6
- data/ext/Proxy.cpp +90 -14
- data/ext/Proxy.h +1 -6
- data/ext/Slice.cpp +3 -18
- data/ext/Slice.h +1 -6
- data/ext/Types.cpp +92 -60
- data/ext/Types.h +1 -6
- data/ext/Util.cpp +61 -32
- data/ext/Util.h +108 -33
- data/ext/ValueFactoryManager.cpp +2 -7
- data/ext/ValueFactoryManager.h +2 -7
- data/ext/extconf.rb +5 -3
- data/ext/ice/cpp/include/Ice/Application.h +234 -81
- data/ext/ice/cpp/include/Ice/AsyncResult.h +77 -6
- data/ext/ice/cpp/include/Ice/AsyncResultF.h +1 -6
- data/ext/ice/cpp/include/Ice/BatchRequestInterceptor.h +35 -7
- data/ext/ice/cpp/include/Ice/BatchRequestQueueF.h +1 -6
- data/ext/ice/cpp/include/Ice/Buffer.h +1 -6
- data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +43 -6
- data/ext/ice/cpp/include/Ice/Comparable.h +81 -6
- data/ext/ice/cpp/include/Ice/Config.h +12 -6
- data/ext/ice/cpp/include/Ice/ConnectionAsync.h +97 -6
- data/ext/ice/cpp/include/Ice/ConnectionIF.h +3 -6
- data/ext/ice/cpp/include/Ice/ConsoleUtil.h +1 -6
- data/ext/ice/cpp/include/Ice/DefaultValueFactory.h +1 -6
- data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +17 -7
- data/ext/ice/cpp/include/Ice/Dispatcher.h +22 -7
- data/ext/ice/cpp/include/Ice/DynamicLibrary.h +1 -6
- data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +1 -6
- data/ext/ice/cpp/include/Ice/Exception.h +57 -20
- data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +11 -6
- data/ext/ice/cpp/include/Ice/FactoryTable.h +12 -7
- data/ext/ice/cpp/include/Ice/FactoryTableInit.h +2 -7
- data/ext/ice/cpp/include/Ice/Format.h +13 -19
- data/ext/ice/cpp/include/Ice/Functional.h +6 -6
- data/ext/ice/cpp/include/Ice/GCObject.h +1 -6
- data/ext/ice/cpp/include/Ice/Handle.h +1 -6
- data/ext/ice/cpp/include/Ice/Ice.h +1 -6
- data/ext/ice/cpp/include/Ice/IconvStringConverter.h +47 -18
- data/ext/ice/cpp/include/Ice/Incoming.h +27 -9
- data/ext/ice/cpp/include/Ice/IncomingAsync.h +47 -9
- data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +1 -6
- data/ext/ice/cpp/include/Ice/Initialize.h +775 -103
- data/ext/ice/cpp/include/Ice/InputStream.h +642 -122
- data/ext/ice/cpp/include/Ice/InstanceF.h +1 -6
- data/ext/ice/cpp/include/Ice/InterfaceByValue.h +17 -6
- data/ext/ice/cpp/include/Ice/LocalObject.h +5 -6
- data/ext/ice/cpp/include/Ice/LocalObjectF.h +1 -6
- data/ext/ice/cpp/include/Ice/LoggerUtil.h +37 -11
- data/ext/ice/cpp/include/Ice/MetricsAdminI.h +11 -7
- data/ext/ice/cpp/include/Ice/MetricsFunctional.h +3 -6
- data/ext/ice/cpp/include/Ice/MetricsObserverI.h +18 -7
- data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +46 -28
- data/ext/ice/cpp/include/Ice/Object.h +338 -52
- data/ext/ice/cpp/include/Ice/ObjectF.h +5 -6
- data/ext/ice/cpp/include/Ice/ObserverHelper.h +1 -6
- data/ext/ice/cpp/include/Ice/Optional.h +42 -12
- data/ext/ice/cpp/include/Ice/OutgoingAsync.h +32 -8
- data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +1 -6
- data/ext/ice/cpp/include/Ice/OutputStream.h +441 -102
- data/ext/ice/cpp/include/Ice/Protocol.h +31 -6
- data/ext/ice/cpp/include/Ice/Proxy.h +2288 -207
- data/ext/ice/cpp/include/Ice/ProxyF.h +3 -6
- data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +1 -6
- data/ext/ice/cpp/include/Ice/ProxyHandle.h +10 -6
- data/ext/ice/cpp/include/Ice/ReferenceF.h +1 -6
- data/ext/ice/cpp/include/Ice/RegisterPlugins.h +67 -14
- data/ext/ice/cpp/include/Ice/RequestHandlerF.h +1 -6
- data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +1 -6
- data/ext/ice/cpp/include/Ice/SHA1.h +1 -6
- data/ext/ice/cpp/include/Ice/ServantManagerF.h +1 -6
- data/ext/ice/cpp/include/Ice/Service.h +267 -143
- data/ext/ice/cpp/include/Ice/SliceChecksums.h +5 -6
- data/ext/ice/cpp/include/Ice/SlicedData.h +80 -38
- data/ext/ice/cpp/include/Ice/SlicedDataF.h +4 -6
- data/ext/ice/cpp/include/Ice/StreamHelpers.h +325 -122
- data/ext/ice/cpp/include/Ice/StringConverter.h +32 -6
- data/ext/ice/cpp/include/Ice/ThreadPoolF.h +1 -6
- data/ext/ice/cpp/include/Ice/UUID.h +2 -6
- data/ext/ice/cpp/include/Ice/UniquePtr.h +2 -7
- data/ext/ice/cpp/include/Ice/UniqueRef.h +6 -7
- data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +6 -6
- data/ext/ice/cpp/include/Ice/Value.h +41 -6
- data/ext/ice/cpp/include/Ice/ValueF.h +3 -6
- data/ext/ice/cpp/include/IceSSL/Config.h +1 -6
- data/ext/ice/cpp/include/IceSSL/IceSSL.h +1 -6
- data/ext/ice/cpp/include/IceSSL/OpenSSL.h +75 -58
- data/ext/ice/cpp/include/IceSSL/Plugin.h +323 -223
- data/ext/ice/cpp/include/IceSSL/SChannel.h +41 -35
- data/ext/ice/cpp/include/IceSSL/SecureTransport.h +39 -33
- data/ext/ice/cpp/include/IceSSL/UWP.h +33 -29
- data/ext/ice/cpp/include/IceUtil/Atomic.h +2 -7
- data/ext/ice/cpp/include/IceUtil/Cond.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Config.h +35 -14
- data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +5 -10
- data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +1 -6
- data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +52 -36
- data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +5 -11
- data/ext/ice/cpp/include/IceUtil/Exception.h +130 -11
- data/ext/ice/cpp/include/IceUtil/FileUtil.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Functional.h +5 -6
- data/ext/ice/cpp/include/IceUtil/Handle.h +1 -6
- data/ext/ice/cpp/include/IceUtil/IceUtil.h +1 -6
- data/ext/ice/cpp/include/IceUtil/InputUtil.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Iterator.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Lock.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Monitor.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Mutex.h +3 -13
- data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +1 -6
- data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +1 -6
- data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Optional.h +103 -6
- data/ext/ice/cpp/include/IceUtil/Options.h +1 -6
- data/ext/ice/cpp/include/IceUtil/OutputUtil.h +18 -20
- data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +1 -6
- data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +8 -6
- data/ext/ice/cpp/include/IceUtil/Random.h +37 -6
- data/ext/ice/cpp/include/IceUtil/RecMutex.h +1 -6
- data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +4 -9
- data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +12 -9
- data/ext/ice/cpp/include/IceUtil/ScopedArray.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Shared.h +1 -6
- data/ext/ice/cpp/include/IceUtil/StopWatch.h +1 -6
- data/ext/ice/cpp/include/IceUtil/StringConverter.h +107 -92
- data/ext/ice/cpp/include/IceUtil/StringUtil.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Thread.h +1 -6
- data/ext/ice/cpp/include/IceUtil/ThreadException.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Time.h +1 -6
- data/ext/ice/cpp/include/IceUtil/Timer.h +5 -6
- data/ext/ice/cpp/include/IceUtil/UUID.h +5 -6
- data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +1 -6
- data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +81 -26
- data/ext/ice/cpp/include/generated/Ice/Communicator.h +928 -136
- data/ext/ice/cpp/include/generated/Ice/CommunicatorF.h +14 -11
- data/ext/ice/cpp/include/generated/Ice/Connection.h +968 -180
- data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +22 -15
- data/ext/ice/cpp/include/generated/Ice/Current.h +166 -9
- data/ext/ice/cpp/include/generated/Ice/Endpoint.h +476 -115
- data/ext/ice/cpp/include/generated/Ice/EndpointF.h +42 -23
- data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +30 -9
- data/ext/ice/cpp/include/generated/Ice/FacetMap.h +12 -11
- data/ext/ice/cpp/include/generated/Ice/Identity.h +56 -13
- data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +151 -34
- data/ext/ice/cpp/include/generated/Ice/ImplicitContextF.h +14 -11
- data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +630 -89
- data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +20 -13
- data/ext/ice/cpp/include/generated/Ice/LocalException.h +5009 -770
- data/ext/ice/cpp/include/generated/Ice/Locator.h +2255 -441
- data/ext/ice/cpp/include/generated/Ice/LocatorF.h +32 -19
- data/ext/ice/cpp/include/generated/Ice/Logger.h +105 -32
- data/ext/ice/cpp/include/generated/Ice/LoggerF.h +14 -11
- data/ext/ice/cpp/include/generated/Ice/Metrics.h +2539 -471
- data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +1005 -132
- data/ext/ice/cpp/include/generated/Ice/ObjectAdapterF.h +14 -11
- data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +73 -18
- data/ext/ice/cpp/include/generated/Ice/Plugin.h +143 -34
- data/ext/ice/cpp/include/generated/Ice/PluginF.h +18 -13
- data/ext/ice/cpp/include/generated/Ice/Process.h +514 -79
- data/ext/ice/cpp/include/generated/Ice/ProcessF.h +21 -14
- data/ext/ice/cpp/include/generated/Ice/Properties.h +307 -64
- data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +738 -127
- data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +25 -16
- data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +1524 -284
- data/ext/ice/cpp/include/generated/Ice/Router.h +1007 -201
- data/ext/ice/cpp/include/generated/Ice/RouterF.h +21 -14
- data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +175 -24
- data/ext/ice/cpp/include/generated/Ice/ServantLocatorF.h +14 -11
- data/ext/ice/cpp/include/generated/Ice/SliceChecksumDict.h +14 -9
- data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +178 -29
- data/ext/ice/cpp/include/generated/Ice/Version.h +32 -9
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +72 -21
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +14 -11
- data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +40 -15
- data/ext/ice/cpp/src/Ice/ACM.cpp +21 -14
- data/ext/ice/cpp/src/Ice/ACM.h +1 -6
- data/ext/ice/cpp/src/Ice/ACMF.h +1 -6
- data/ext/ice/cpp/src/Ice/Acceptor.cpp +1 -6
- data/ext/ice/cpp/src/Ice/Acceptor.h +1 -6
- data/ext/ice/cpp/src/Ice/AcceptorF.h +1 -6
- data/ext/ice/cpp/src/Ice/ArgVector.cpp +8 -13
- data/ext/ice/cpp/src/Ice/ArgVector.h +1 -6
- data/ext/ice/cpp/src/Ice/AsyncResult.cpp +1 -7
- data/ext/ice/cpp/src/Ice/Base64.cpp +12 -18
- data/ext/ice/cpp/src/Ice/Base64.h +1 -6
- data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +2 -7
- data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +1 -6
- data/ext/ice/cpp/src/Ice/Buffer.cpp +3 -8
- data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +4 -9
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +2 -8
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +1 -6
- data/ext/ice/cpp/src/Ice/Communicator.cpp +7 -10
- data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +56 -22
- data/ext/ice/cpp/src/Ice/CommunicatorI.h +15 -16
- data/ext/ice/cpp/src/Ice/Cond.cpp +1 -6
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +11 -11
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +5 -10
- data/ext/ice/cpp/src/Ice/ConnectRequestHandlerF.h +1 -6
- data/ext/ice/cpp/src/Ice/Connection.cpp +28 -17
- data/ext/ice/cpp/src/Ice/ConnectionF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +167 -52
- data/ext/ice/cpp/src/Ice/ConnectionFactory.h +4 -6
- data/ext/ice/cpp/src/Ice/ConnectionFactoryF.h +1 -6
- data/ext/ice/cpp/src/Ice/ConnectionI.cpp +78 -60
- data/ext/ice/cpp/src/Ice/ConnectionI.h +10 -13
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +1 -6
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +2 -7
- data/ext/ice/cpp/src/Ice/Connector.cpp +1 -6
- data/ext/ice/cpp/src/Ice/Connector.h +1 -6
- data/ext/ice/cpp/src/Ice/ConnectorF.h +1 -6
- data/ext/ice/cpp/src/Ice/CountDownLatch.cpp +1 -6
- data/ext/ice/cpp/src/Ice/Current.cpp +4 -9
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +5 -12
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +1 -6
- data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +1 -6
- data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +14 -6
- data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +7 -11
- data/ext/ice/cpp/src/Ice/Endpoint.cpp +25 -16
- data/ext/ice/cpp/src/Ice/EndpointF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +1 -6
- data/ext/ice/cpp/src/Ice/EndpointFactory.h +1 -6
- data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +1 -6
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +7 -18
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +1 -6
- data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +1 -6
- data/ext/ice/cpp/src/Ice/EndpointI.cpp +2 -7
- data/ext/ice/cpp/src/Ice/EndpointI.h +5 -10
- data/ext/ice/cpp/src/Ice/EndpointIF.h +1 -6
- data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +4 -9
- data/ext/ice/cpp/src/Ice/EventHandler.cpp +1 -6
- data/ext/ice/cpp/src/Ice/EventHandler.h +1 -6
- data/ext/ice/cpp/src/Ice/EventHandlerF.h +1 -6
- data/ext/ice/cpp/src/Ice/Exception.cpp +8 -13
- data/ext/ice/cpp/src/Ice/FacetMap.cpp +4 -9
- data/ext/ice/cpp/src/Ice/FactoryTable.cpp +1 -6
- data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +1 -6
- data/ext/ice/cpp/src/Ice/GCObject.cpp +2 -7
- data/ext/ice/cpp/src/Ice/HashUtil.h +2 -7
- data/ext/ice/cpp/src/Ice/HttpParser.cpp +1 -6
- data/ext/ice/cpp/src/Ice/HttpParser.h +1 -6
- data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +37 -59
- data/ext/ice/cpp/src/Ice/IPEndpointI.h +5 -10
- data/ext/ice/cpp/src/Ice/IPEndpointIF.h +1 -6
- data/ext/ice/cpp/src/Ice/IconvStringConverter.cpp +1 -6
- data/ext/ice/cpp/src/Ice/Identity.cpp +4 -9
- data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +7 -10
- data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +3 -20
- data/ext/ice/cpp/src/Ice/ImplicitContextI.h +1 -6
- data/ext/ice/cpp/src/Ice/Incoming.cpp +11 -13
- data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +1 -6
- data/ext/ice/cpp/src/Ice/IncomingRequest.h +1 -6
- data/ext/ice/cpp/src/Ice/Initialize.cpp +15 -26
- data/ext/ice/cpp/src/Ice/InputStream.cpp +45 -77
- data/ext/ice/cpp/src/Ice/Instance.cpp +70 -46
- data/ext/ice/cpp/src/Ice/Instance.h +3 -6
- data/ext/ice/cpp/src/Ice/Instrumentation.cpp +34 -19
- data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +2 -7
- data/ext/ice/cpp/src/Ice/InstrumentationI.h +1 -6
- data/ext/ice/cpp/src/Ice/LocalException.cpp +280 -285
- data/ext/ice/cpp/src/Ice/LocalObject.cpp +1 -6
- data/ext/ice/cpp/src/Ice/Locator.cpp +274 -166
- data/ext/ice/cpp/src/Ice/LocatorF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +28 -30
- data/ext/ice/cpp/src/Ice/LocatorInfo.h +3 -8
- data/ext/ice/cpp/src/Ice/LocatorInfoF.h +1 -6
- data/ext/ice/cpp/src/Ice/Logger.cpp +7 -10
- data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +8 -19
- data/ext/ice/cpp/src/Ice/LoggerAdminI.h +1 -6
- data/ext/ice/cpp/src/Ice/LoggerF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/LoggerI.cpp +13 -12
- data/ext/ice/cpp/src/Ice/LoggerI.h +1 -6
- data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +1 -6
- data/ext/ice/cpp/src/Ice/Metrics.cpp +296 -113
- data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +10 -15
- data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +1 -6
- data/ext/ice/cpp/src/Ice/Network.cpp +252 -271
- data/ext/ice/cpp/src/Ice/Network.h +6 -20
- data/ext/ice/cpp/src/Ice/NetworkF.h +1 -6
- data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +2 -8
- data/ext/ice/cpp/src/Ice/NetworkProxy.h +1 -6
- data/ext/ice/cpp/src/Ice/NetworkProxyF.h +1 -6
- data/ext/ice/cpp/src/Ice/OSLogLoggerI.cpp +57 -0
- data/ext/ice/cpp/src/Ice/OSLogLoggerI.h +40 -0
- data/ext/ice/cpp/src/Ice/Object.cpp +16 -17
- data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +7 -10
- data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +53 -24
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +1 -6
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +1 -6
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +137 -156
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +15 -16
- data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +7 -10
- data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +1 -6
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +29 -51
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +2 -7
- data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +6 -9
- data/ext/ice/cpp/src/Ice/OutputStream.cpp +29 -61
- data/ext/ice/cpp/src/Ice/Plugin.cpp +10 -11
- data/ext/ice/cpp/src/Ice/PluginF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +15 -39
- data/ext/ice/cpp/src/Ice/PluginManagerI.h +3 -8
- data/ext/ice/cpp/src/Ice/Process.cpp +66 -42
- data/ext/ice/cpp/src/Ice/ProcessF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/Properties.cpp +7 -10
- data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +84 -54
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +3 -8
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +1 -6
- data/ext/ice/cpp/src/Ice/PropertiesF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/PropertiesI.cpp +25 -35
- data/ext/ice/cpp/src/Ice/PropertiesI.h +10 -15
- data/ext/ice/cpp/src/Ice/PropertyNames.cpp +45 -8
- data/ext/ice/cpp/src/Ice/PropertyNames.h +2 -7
- data/ext/ice/cpp/src/Ice/Protocol.cpp +5 -18
- data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +1 -6
- data/ext/ice/cpp/src/Ice/ProtocolInstance.h +1 -6
- data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +1 -6
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +1 -6
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +1 -6
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +1 -6
- data/ext/ice/cpp/src/Ice/Proxy.cpp +54 -8
- data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +11 -7
- data/ext/ice/cpp/src/Ice/ProxyFactory.h +1 -6
- data/ext/ice/cpp/src/Ice/Reference.cpp +116 -38
- data/ext/ice/cpp/src/Ice/Reference.h +13 -7
- data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +52 -98
- data/ext/ice/cpp/src/Ice/ReferenceFactory.h +1 -6
- data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +1 -6
- data/ext/ice/cpp/src/Ice/RegisterPluginsInit.cpp +4 -8
- data/ext/ice/cpp/src/Ice/RegisterPluginsInit.h +1 -6
- data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +194 -113
- data/ext/ice/cpp/src/Ice/ReplyStatus.h +1 -6
- data/ext/ice/cpp/src/Ice/RequestHandler.cpp +1 -6
- data/ext/ice/cpp/src/Ice/RequestHandler.h +1 -6
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +1 -6
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +1 -6
- data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +1 -6
- data/ext/ice/cpp/src/Ice/ResponseHandler.h +1 -6
- data/ext/ice/cpp/src/Ice/RetryQueue.cpp +7 -9
- data/ext/ice/cpp/src/Ice/RetryQueue.h +1 -6
- data/ext/ice/cpp/src/Ice/RetryQueueF.h +1 -6
- data/ext/ice/cpp/src/Ice/Router.cpp +160 -87
- data/ext/ice/cpp/src/Ice/RouterF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/RouterInfo.cpp +8 -35
- data/ext/ice/cpp/src/Ice/RouterInfo.h +1 -8
- data/ext/ice/cpp/src/Ice/RouterInfoF.h +1 -6
- data/ext/ice/cpp/src/Ice/SHA1.cpp +3 -8
- data/ext/ice/cpp/src/Ice/Selector.cpp +76 -49
- data/ext/ice/cpp/src/Ice/Selector.h +1 -6
- data/ext/ice/cpp/src/Ice/ServantLocator.cpp +7 -10
- data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +4 -9
- data/ext/ice/cpp/src/Ice/ServantManager.cpp +21 -42
- data/ext/ice/cpp/src/Ice/ServantManager.h +1 -6
- data/ext/ice/cpp/src/Ice/SharedContext.h +1 -6
- data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +4 -9
- data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +1 -6
- data/ext/ice/cpp/src/Ice/SlicedData.cpp +1 -6
- data/ext/ice/cpp/src/Ice/StreamSocket.cpp +46 -69
- data/ext/ice/cpp/src/Ice/StreamSocket.h +1 -6
- data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +10 -6
- data/ext/ice/cpp/src/Ice/StringUtil.h +1 -6
- data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +3 -8
- data/ext/ice/cpp/src/Ice/SysLoggerI.h +1 -6
- data/ext/ice/cpp/src/Ice/SystemdJournalI.cpp +66 -0
- data/ext/ice/cpp/src/Ice/SystemdJournalI.h +39 -0
- data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +13 -19
- data/ext/ice/cpp/src/Ice/TcpAcceptor.h +1 -6
- data/ext/ice/cpp/src/Ice/TcpConnector.cpp +6 -6
- data/ext/ice/cpp/src/Ice/TcpConnector.h +1 -6
- data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +13 -16
- data/ext/ice/cpp/src/Ice/TcpEndpointI.h +2 -7
- data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +6 -6
- data/ext/ice/cpp/src/Ice/TcpTransceiver.h +1 -6
- data/ext/ice/cpp/src/Ice/Thread.cpp +18 -14
- data/ext/ice/cpp/src/Ice/ThreadPool.cpp +79 -19
- data/ext/ice/cpp/src/Ice/ThreadPool.h +11 -12
- data/ext/ice/cpp/src/Ice/Timer.cpp +11 -6
- data/ext/ice/cpp/src/Ice/TraceLevels.cpp +1 -6
- data/ext/ice/cpp/src/Ice/TraceLevels.h +1 -6
- data/ext/ice/cpp/src/Ice/TraceLevelsF.h +1 -6
- data/ext/ice/cpp/src/Ice/TraceUtil.cpp +1 -6
- data/ext/ice/cpp/src/Ice/TraceUtil.h +1 -6
- data/ext/ice/cpp/src/Ice/Transceiver.cpp +1 -6
- data/ext/ice/cpp/src/Ice/Transceiver.h +1 -6
- data/ext/ice/cpp/src/Ice/TransceiverF.h +3 -8
- data/ext/ice/cpp/src/Ice/UdpConnector.cpp +4 -6
- data/ext/ice/cpp/src/Ice/UdpConnector.h +1 -6
- data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +30 -33
- data/ext/ice/cpp/src/Ice/UdpEndpointI.h +2 -7
- data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +49 -79
- data/ext/ice/cpp/src/Ice/UdpTransceiver.h +1 -6
- data/ext/ice/cpp/src/Ice/Value.cpp +1 -6
- data/ext/ice/cpp/src/Ice/ValueFactory.cpp +10 -11
- data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +3 -12
- data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.h +2 -7
- data/ext/ice/cpp/src/Ice/Version.cpp +4 -9
- data/ext/ice/cpp/src/Ice/VirtualShared.h +1 -6
- data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +1 -6
- data/ext/ice/cpp/src/Ice/WSAcceptor.h +1 -6
- data/ext/ice/cpp/src/Ice/WSConnector.cpp +1 -6
- data/ext/ice/cpp/src/Ice/WSConnector.h +1 -6
- data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +4 -10
- data/ext/ice/cpp/src/Ice/WSEndpoint.h +2 -7
- data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +25 -30
- data/ext/ice/cpp/src/Ice/WSTransceiver.h +1 -7
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +86 -33
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +1083 -129
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +4 -7
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +1 -6
- data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +5 -10
- data/ext/ice/cpp/src/IceDiscovery/LookupI.h +1 -6
- data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +1 -6
- data/ext/ice/cpp/src/IceDiscovery/PluginI.h +1 -6
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +71 -30
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +640 -79
- data/ext/ice/cpp/src/IceLocatorDiscovery/Plugin.h +1 -6
- data/ext/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +122 -25
- data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +2 -9
- data/ext/ice/cpp/src/IceSSL/AcceptorI.h +1 -6
- data/ext/ice/cpp/src/IceSSL/CertificateI.cpp +4 -9
- data/ext/ice/cpp/src/IceSSL/CertificateI.h +1 -6
- data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +7 -10
- data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +4 -9
- data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +2 -9
- data/ext/ice/cpp/src/IceSSL/ConnectorI.h +1 -6
- data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +9 -14
- data/ext/ice/cpp/src/IceSSL/EndpointI.h +3 -8
- data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +7 -10
- data/ext/ice/cpp/src/IceSSL/Instance.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/Instance.h +1 -6
- data/ext/ice/cpp/src/IceSSL/InstanceF.h +1 -6
- data/ext/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +11 -19
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +100 -46
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.h +3 -8
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngineF.h +1 -6
- data/ext/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +190 -206
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +2 -11
- data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.h +1 -6
- data/ext/ice/cpp/src/IceSSL/PluginI.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/PluginI.h +1 -6
- data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +1 -7
- data/ext/ice/cpp/src/IceSSL/RFC2253.h +1 -6
- data/ext/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +5 -10
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +69 -36
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.h +5 -8
- data/ext/ice/cpp/src/IceSSL/SChannelEngineF.h +5 -6
- data/ext/ice/cpp/src/IceSSL/SChannelPluginI.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +71 -62
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +7 -6
- data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +26 -28
- data/ext/ice/cpp/src/IceSSL/SSLEngine.h +3 -6
- data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +1 -6
- data/ext/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +37 -31
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +44 -18
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +5 -6
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngineF.h +4 -6
- data/ext/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +47 -27
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +6 -7
- data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +41 -34
- data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.h +5 -6
- data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +4 -10
- data/ext/ice/cpp/src/IceSSL/TrustManager.h +1 -6
- data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +1 -6
- data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +4 -9
- data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +4 -9
- data/ext/ice/cpp/src/IceSSL/UWPEngine.h +1 -6
- data/ext/ice/cpp/src/IceSSL/UWPEngineF.h +1 -6
- data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +5 -10
- data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +1 -6
- data/ext/ice/cpp/src/IceSSL/Util.cpp +12 -11
- data/ext/ice/cpp/src/IceSSL/Util.h +1 -6
- data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +1 -6
- data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +3 -6
- data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +6 -11
- data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/Options.cpp +25 -15
- data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +41 -16
- data/ext/ice/cpp/src/IceUtil/Random.cpp +3 -8
- data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +2 -11
- data/ext/ice/cpp/src/IceUtil/Shared.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +6 -11
- data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +45 -12
- data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/Time.cpp +10 -17
- data/ext/ice/cpp/src/IceUtil/UUID.cpp +8 -13
- data/ext/ice/cpp/src/IceUtil/Unicode.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/Unicode.h +1 -6
- data/ext/ice/cpp/src/IceUtil/UtilException.cpp +17 -16
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +178 -170
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.h +8 -12
- data/ext/ice/cpp/src/Slice/Checksum.cpp +1 -6
- data/ext/ice/cpp/src/Slice/Checksum.h +1 -6
- data/ext/ice/cpp/src/Slice/FileTracker.cpp +1 -6
- data/ext/ice/cpp/src/Slice/FileTracker.h +1 -6
- data/ext/ice/cpp/src/Slice/Grammar.cpp +424 -438
- data/ext/ice/cpp/src/Slice/Grammar.h +7 -7
- data/ext/ice/cpp/src/Slice/GrammarUtil.h +1 -7
- data/ext/ice/cpp/src/Slice/JavaUtil.cpp +195 -122
- data/ext/ice/cpp/src/Slice/JavaUtil.h +12 -12
- data/ext/ice/cpp/src/Slice/MD5.cpp +1 -6
- data/ext/ice/cpp/src/Slice/MD5.h +1 -6
- data/ext/ice/cpp/src/Slice/MD5I.cpp +8 -0
- data/ext/ice/cpp/src/Slice/PHPUtil.cpp +6 -6
- data/ext/ice/cpp/src/Slice/PHPUtil.h +1 -6
- data/ext/ice/cpp/src/Slice/Parser.cpp +535 -266
- data/ext/ice/cpp/src/Slice/Parser.h +72 -12
- data/ext/ice/cpp/src/Slice/Preprocessor.cpp +26 -17
- data/ext/ice/cpp/src/Slice/Preprocessor.h +2 -7
- data/ext/ice/cpp/src/Slice/Python.cpp +28 -42
- data/ext/ice/cpp/src/Slice/PythonUtil.cpp +137 -53
- data/ext/ice/cpp/src/Slice/PythonUtil.h +2 -7
- data/ext/ice/cpp/src/Slice/Ruby.cpp +5 -10
- data/ext/ice/cpp/src/Slice/RubyUtil.cpp +13 -15
- data/ext/ice/cpp/src/Slice/RubyUtil.h +1 -6
- data/ext/ice/cpp/src/Slice/Scanner.cpp +296 -217
- data/ext/ice/cpp/src/Slice/SliceUtil.cpp +2 -8
- data/ext/ice/cpp/src/Slice/StringLiteralUtil.cpp +109 -27
- data/ext/ice/cpp/src/Slice/Util.h +5 -9
- data/ext/ice/mcpp/Makefile +2 -5
- data/ice.gemspec +3 -5
- data/lib/Glacier2.rb +1 -6
- data/lib/Glacier2/Metrics.rb +3 -8
- data/lib/Glacier2/PermissionsVerifier.rb +3 -8
- data/lib/Glacier2/PermissionsVerifierF.rb +3 -8
- data/lib/Glacier2/Router.rb +3 -8
- data/lib/Glacier2/RouterF.rb +3 -8
- data/lib/Glacier2/SSLInfo.rb +3 -8
- data/lib/Glacier2/Session.rb +3 -8
- data/lib/Ice.rb +2 -7
- data/lib/Ice/BuiltinSequences.rb +3 -8
- data/lib/Ice/Communicator.rb +3 -8
- data/lib/Ice/CommunicatorF.rb +3 -8
- data/lib/Ice/Connection.rb +3 -8
- data/lib/Ice/ConnectionF.rb +3 -8
- data/lib/Ice/Current.rb +3 -8
- data/lib/Ice/Endpoint.rb +3 -8
- data/lib/Ice/EndpointF.rb +3 -8
- data/lib/Ice/EndpointTypes.rb +3 -8
- data/lib/Ice/FacetMap.rb +3 -8
- data/lib/Ice/Identity.rb +3 -8
- data/lib/Ice/ImplicitContext.rb +3 -8
- data/lib/Ice/ImplicitContextF.rb +3 -8
- data/lib/Ice/Instrumentation.rb +3 -8
- data/lib/Ice/InstrumentationF.rb +3 -8
- data/lib/Ice/LocalException.rb +3 -8
- data/lib/Ice/Locator.rb +3 -8
- data/lib/Ice/LocatorF.rb +3 -8
- data/lib/Ice/Logger.rb +3 -8
- data/lib/Ice/LoggerF.rb +3 -8
- data/lib/Ice/Metrics.rb +3 -8
- data/lib/Ice/ObjectAdapter.rb +3 -8
- data/lib/Ice/ObjectAdapterF.rb +3 -8
- data/lib/Ice/ObjectFactory.rb +3 -8
- data/lib/Ice/Plugin.rb +3 -8
- data/lib/Ice/PluginF.rb +3 -8
- data/lib/Ice/Process.rb +3 -8
- data/lib/Ice/ProcessF.rb +3 -8
- data/lib/Ice/Properties.rb +3 -8
- data/lib/Ice/PropertiesAdmin.rb +3 -8
- data/lib/Ice/PropertiesF.rb +3 -8
- data/lib/Ice/RemoteLogger.rb +3 -8
- data/lib/Ice/Router.rb +3 -8
- data/lib/Ice/RouterF.rb +3 -8
- data/lib/Ice/ServantLocator.rb +3 -8
- data/lib/Ice/ServantLocatorF.rb +3 -8
- data/lib/Ice/SliceChecksumDict.rb +3 -8
- data/lib/Ice/ValueFactory.rb +3 -8
- data/lib/Ice/Version.rb +3 -8
- data/lib/IceBox.rb +1 -6
- data/lib/IceBox/IceBox.rb +3 -8
- data/lib/IceGrid.rb +1 -6
- data/lib/IceGrid/Admin.rb +3 -8
- data/lib/IceGrid/Descriptor.rb +3 -8
- data/lib/IceGrid/Exception.rb +3 -8
- data/lib/IceGrid/FileParser.rb +3 -8
- data/lib/IceGrid/PluginFacade.rb +3 -8
- data/lib/IceGrid/Registry.rb +3 -8
- data/lib/IceGrid/Session.rb +3 -8
- data/lib/IceGrid/UserAccountMapper.rb +3 -8
- data/lib/IcePatch2.rb +1 -6
- data/lib/IcePatch2/FileInfo.rb +3 -8
- data/lib/IcePatch2/FileServer.rb +3 -8
- data/lib/IceStorm.rb +1 -6
- data/lib/IceStorm/IceStorm.rb +3 -8
- data/lib/IceStorm/Metrics.rb +3 -8
- data/slice/Glacier2/Metrics.ice +14 -8
- data/slice/Glacier2/PermissionsVerifier.ice +11 -7
- data/slice/Glacier2/PermissionsVerifierF.ice +11 -7
- data/slice/Glacier2/Router.ice +12 -8
- data/slice/Glacier2/RouterF.ice +11 -7
- data/slice/Glacier2/SSLInfo.ice +11 -7
- data/slice/Glacier2/Session.ice +11 -7
- data/slice/Ice/BuiltinSequences.ice +13 -7
- data/slice/Ice/Communicator.ice +143 -102
- data/slice/Ice/CommunicatorF.ice +13 -7
- data/slice/Ice/Connection.ice +65 -29
- data/slice/Ice/ConnectionF.ice +13 -7
- data/slice/Ice/Current.ice +31 -26
- data/slice/Ice/Endpoint.ice +24 -21
- data/slice/Ice/EndpointF.ice +14 -8
- data/slice/Ice/EndpointTypes.ice +15 -9
- data/slice/Ice/FacetMap.ice +14 -8
- data/slice/Ice/Identity.ice +13 -7
- data/slice/Ice/ImplicitContext.ice +31 -25
- data/slice/Ice/ImplicitContextF.ice +12 -7
- data/slice/Ice/Instrumentation.ice +19 -13
- data/slice/Ice/InstrumentationF.ice +13 -7
- data/slice/Ice/LocalException.ice +35 -29
- data/slice/Ice/Locator.ice +14 -8
- data/slice/Ice/LocatorF.ice +13 -7
- data/slice/Ice/Logger.ice +19 -13
- data/slice/Ice/LoggerF.ice +13 -7
- data/slice/Ice/Metrics.ice +26 -18
- data/slice/Ice/ObjectAdapter.ice +63 -45
- data/slice/Ice/ObjectAdapterF.ice +13 -7
- data/slice/Ice/ObjectFactory.ice +20 -12
- data/slice/Ice/Plugin.ice +19 -10
- data/slice/Ice/PluginF.ice +17 -7
- data/slice/Ice/Process.ice +13 -7
- data/slice/Ice/ProcessF.ice +13 -7
- data/slice/Ice/Properties.ice +35 -24
- data/slice/Ice/PropertiesAdmin.ice +13 -7
- data/slice/Ice/PropertiesF.ice +13 -7
- data/slice/Ice/RemoteLogger.ice +23 -28
- data/slice/Ice/Router.ice +14 -8
- data/slice/Ice/RouterF.ice +13 -7
- data/slice/Ice/ServantLocator.ice +31 -23
- data/slice/Ice/ServantLocatorF.ice +13 -7
- data/slice/Ice/SliceChecksumDict.ice +13 -7
- data/slice/Ice/ValueFactory.ice +31 -26
- data/slice/Ice/Version.ice +13 -7
- data/slice/IceBT/ConnectionInfo.ice +12 -7
- data/slice/IceBT/EndpointInfo.ice +13 -8
- data/slice/IceBT/Types.ice +12 -7
- data/slice/IceBox/IceBox.ice +30 -11
- data/slice/IceDiscovery/IceDiscovery.ice +68 -7
- data/slice/IceGrid/Admin.ice +41 -35
- data/slice/IceGrid/Descriptor.ice +15 -10
- data/slice/IceGrid/Exception.ice +15 -10
- data/slice/IceGrid/FileParser.ice +14 -8
- data/slice/IceGrid/PluginFacade.ice +17 -11
- data/slice/IceGrid/Registry.ice +13 -7
- data/slice/IceGrid/Session.ice +18 -12
- data/slice/IceGrid/UserAccountMapper.ice +16 -10
- data/slice/IceIAP/ConnectionInfo.ice +11 -8
- data/slice/IceIAP/EndpointInfo.ice +11 -8
- data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +12 -7
- data/slice/IcePatch2/FileInfo.ice +12 -7
- data/slice/IcePatch2/FileServer.ice +13 -8
- data/slice/IceSSL/ConnectionInfo.ice +16 -9
- data/slice/IceSSL/ConnectionInfoF.ice +14 -8
- data/slice/IceSSL/EndpointInfo.ice +14 -8
- data/slice/IceStorm/IceStorm.ice +20 -15
- data/slice/IceStorm/Metrics.ice +12 -8
- metadata +7 -13
- data/BZIP2_LICENSE +0 -42
- data/ext/ice/bzip2/blocksort.c +0 -1094
- data/ext/ice/bzip2/bzlib.c +0 -1572
- data/ext/ice/bzip2/bzlib.h +0 -282
- data/ext/ice/bzip2/bzlib_private.h +0 -509
- data/ext/ice/bzip2/compress.c +0 -672
- data/ext/ice/bzip2/crctable.c +0 -104
- data/ext/ice/bzip2/decompress.c +0 -646
- data/ext/ice/bzip2/huffman.c +0 -205
- data/ext/ice/bzip2/randtable.c +0 -84
@@ -1,11 +1,6 @@
|
|
1
|
-
// **********************************************************************
|
2
1
|
//
|
3
|
-
// Copyright (c)
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
4
3
|
//
|
5
|
-
// This copy of Ice is licensed to you under the terms described in the
|
6
|
-
// ICE_LICENSE file included in this distribution.
|
7
|
-
//
|
8
|
-
// **********************************************************************
|
9
4
|
|
10
5
|
#ifndef ICE_INPUT_STREAM_H
|
11
6
|
#define ICE_INPUT_STREAM_H
|
@@ -29,6 +24,7 @@ namespace Ice
|
|
29
24
|
|
30
25
|
class UserException;
|
31
26
|
|
27
|
+
/// \cond INTERNAL
|
32
28
|
template<typename T> inline void
|
33
29
|
patchHandle(void* addr, const ValuePtr& v)
|
34
30
|
{
|
@@ -44,49 +40,139 @@ patchHandle(void* addr, const ValuePtr& v)
|
|
44
40
|
_icePatchObjectPtr(*p, v); // Generated _icePatchObjectPtr function, necessary for forward declarations.
|
45
41
|
#endif
|
46
42
|
}
|
43
|
+
/// \endcond
|
47
44
|
|
45
|
+
/**
|
46
|
+
* Interface for input streams used to extract Slice types from a sequence of bytes.
|
47
|
+
* \headerfile Ice/Ice.h
|
48
|
+
*/
|
48
49
|
class ICE_API InputStream : public IceInternal::Buffer
|
49
50
|
{
|
50
51
|
public:
|
51
52
|
|
52
53
|
typedef size_t size_type;
|
53
|
-
typedef void (*PatchFunc)(void*, const ValuePtr&);
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
/**
|
56
|
+
* Signature for a patch function, used to receive an unmarshaled value.
|
57
|
+
* @param addr The target address.
|
58
|
+
* @param v The unmarshaled value.
|
59
|
+
*/
|
60
|
+
typedef void (*PatchFunc)(void* addr, const ValuePtr& v);
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Constructs a stream using the latest encoding version but without a communicator.
|
64
|
+
* This stream will not be able to unmarshal a proxy. For other unmarshaling tasks,
|
65
|
+
* you can provide Helpers for objects that are normally provided by a communicator.
|
66
|
+
* You can supply a communicator later by calling initialize().
|
67
|
+
*/
|
60
68
|
InputStream();
|
61
|
-
InputStream(const std::vector<Byte>&);
|
62
|
-
InputStream(const std::pair<const Byte*, const Byte*>&);
|
63
|
-
InputStream(IceInternal::Buffer&, bool = false);
|
64
|
-
|
65
|
-
//
|
66
|
-
// These constructors use the communicator's default encoding version.
|
67
|
-
//
|
68
|
-
InputStream(const CommunicatorPtr&);
|
69
|
-
InputStream(const CommunicatorPtr&, const std::vector<Byte>&);
|
70
|
-
InputStream(const CommunicatorPtr&, const std::pair<const Byte*, const Byte*>&);
|
71
|
-
InputStream(const CommunicatorPtr&, IceInternal::Buffer&, bool = false);
|
72
69
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
InputStream(const
|
70
|
+
/**
|
71
|
+
* Constructs a stream using the latest encoding version but without a communicator.
|
72
|
+
* This stream will not be able to unmarshal a proxy. For other unmarshaling tasks,
|
73
|
+
* you can provide Helpers for objects that are normally provided by a communicator.
|
74
|
+
* You can supply a communicator later by calling initialize().
|
75
|
+
* @param bytes The encoded data.
|
76
|
+
*/
|
77
|
+
InputStream(const std::vector<Byte>& bytes);
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Constructs a stream using the latest encoding version but without a communicator.
|
81
|
+
* This stream will not be able to unmarshal a proxy. For other unmarshaling tasks,
|
82
|
+
* you can provide Helpers for objects that are normally provided by a communicator.
|
83
|
+
* You can supply a communicator later by calling initialize().
|
84
|
+
* @param bytes The encoded data.
|
85
|
+
*/
|
86
|
+
InputStream(const std::pair<const Byte*, const Byte*>& bytes);
|
87
|
+
|
88
|
+
/// \cond INTERNAL
|
89
|
+
InputStream(IceInternal::Buffer&, bool = false);
|
90
|
+
/// \endcond
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Constructs a stream using the communicator's default encoding version.
|
94
|
+
* @param communicator The communicator to use for unmarshaling tasks.
|
95
|
+
*/
|
96
|
+
InputStream(const CommunicatorPtr& communicator);
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Constructs a stream using the communicator's default encoding version.
|
100
|
+
* @param communicator The communicator to use for unmarshaling tasks.
|
101
|
+
* @param bytes The encoded data.
|
102
|
+
*/
|
103
|
+
InputStream(const CommunicatorPtr& communicator, const std::vector<Byte>& bytes);
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Constructs a stream using the communicator's default encoding version.
|
107
|
+
* @param communicator The communicator to use for unmarshaling tasks.
|
108
|
+
* @param bytes The encoded data.
|
109
|
+
*/
|
110
|
+
InputStream(const CommunicatorPtr& communicator, const std::pair<const Byte*, const Byte*>& bytes);
|
111
|
+
|
112
|
+
/// \cond INTERNAL
|
113
|
+
InputStream(const CommunicatorPtr& communicator, IceInternal::Buffer&, bool = false);
|
114
|
+
/// \endcond
|
115
|
+
|
116
|
+
/**
|
117
|
+
* Constructs a stream using the given encoding version but without a communicator.
|
118
|
+
* This stream will not be able to unmarshal a proxy. For other unmarshaling tasks,
|
119
|
+
* you can provide Helpers for objects that are normally provided by a communicator.
|
120
|
+
* You can supply a communicator later by calling initialize().
|
121
|
+
* @param version The encoding version used to encode the data to be unmarshaled.
|
122
|
+
*/
|
123
|
+
InputStream(const EncodingVersion& version);
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Constructs a stream using the given encoding version but without a communicator.
|
127
|
+
* This stream will not be able to unmarshal a proxy. For other unmarshaling tasks,
|
128
|
+
* you can provide Helpers for objects that are normally provided by a communicator.
|
129
|
+
* You can supply a communicator later by calling initialize().
|
130
|
+
* @param version The encoding version used to encode the data to be unmarshaled.
|
131
|
+
* @param bytes The encoded data.
|
132
|
+
*/
|
133
|
+
InputStream(const EncodingVersion& version, const std::vector<Byte>& bytes);
|
134
|
+
|
135
|
+
/**
|
136
|
+
* Constructs a stream using the given encoding version but without a communicator.
|
137
|
+
* This stream will not be able to unmarshal a proxy. For other unmarshaling tasks,
|
138
|
+
* you can provide Helpers for objects that are normally provided by a communicator.
|
139
|
+
* You can supply a communicator later by calling initialize().
|
140
|
+
* @param version The encoding version used to encode the data to be unmarshaled.
|
141
|
+
* @param bytes The encoded data.
|
142
|
+
*/
|
143
|
+
InputStream(const EncodingVersion& version, const std::pair<const Byte*, const Byte*>& bytes);
|
144
|
+
|
145
|
+
/// \cond INTERNAL
|
81
146
|
InputStream(const EncodingVersion&, IceInternal::Buffer&, bool = false);
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
147
|
+
/// \endcond
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Constructs a stream using the given communicator and encoding version.
|
151
|
+
* @param communicator The communicator to use for unmarshaling tasks.
|
152
|
+
* @param version The encoding version used to encode the data to be unmarshaled.
|
153
|
+
*/
|
154
|
+
InputStream(const CommunicatorPtr& communicator, const EncodingVersion& version);
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Constructs a stream using the given communicator and encoding version.
|
158
|
+
* @param communicator The communicator to use for unmarshaling tasks.
|
159
|
+
* @param version The encoding version used to encode the data to be unmarshaled.
|
160
|
+
* @param bytes The encoded data.
|
161
|
+
*/
|
162
|
+
InputStream(const CommunicatorPtr& communicator, const EncodingVersion& version, const std::vector<Byte>& bytes);
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Constructs a stream using the given communicator and encoding version.
|
166
|
+
* @param communicator The communicator to use for unmarshaling tasks.
|
167
|
+
* @param version The encoding version used to encode the data to be unmarshaled.
|
168
|
+
* @param bytes The encoded data.
|
169
|
+
*/
|
170
|
+
InputStream(const CommunicatorPtr& communicator, const EncodingVersion& version,
|
171
|
+
const std::pair<const Byte*, const Byte*>& bytes);
|
172
|
+
|
173
|
+
/// \cond INTERNAL
|
89
174
|
InputStream(const CommunicatorPtr&, const EncodingVersion&, IceInternal::Buffer&, bool = false);
|
175
|
+
/// \endcond
|
90
176
|
|
91
177
|
~InputStream()
|
92
178
|
{
|
@@ -106,75 +192,184 @@ public:
|
|
106
192
|
#endif
|
107
193
|
}
|
108
194
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
195
|
+
/**
|
196
|
+
* Initializes the stream to use the communicator's default encoding version.
|
197
|
+
* Use initialize() if you originally constructed the stream without a communicator.
|
198
|
+
* @param communicator The communicator to use for unmarshaling tasks.
|
199
|
+
*/
|
200
|
+
void initialize(const CommunicatorPtr& communicator);
|
201
|
+
|
202
|
+
/**
|
203
|
+
* Initializes the stream to use the given communicator and encoding version.
|
204
|
+
* Use initialize() if you originally constructed the stream without a communicator.
|
205
|
+
* @param communicator The communicator to use for unmarshaling tasks.
|
206
|
+
* @param version The encoding version used to encode the data to be unmarshaled.
|
207
|
+
*/
|
208
|
+
void initialize(const CommunicatorPtr& communicator, const EncodingVersion& version);
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Releases any data retained by encapsulations.
|
212
|
+
*/
|
115
213
|
void clear();
|
116
214
|
|
215
|
+
/// \cond INTERNAL
|
117
216
|
//
|
118
217
|
// Must return Instance*, because we don't hold an InstancePtr for
|
119
218
|
// optimization reasons (see comments below).
|
120
219
|
//
|
121
220
|
IceInternal::Instance* instance() const { return _instance; } // Inlined for performance reasons.
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
221
|
+
/// \endcond
|
222
|
+
|
223
|
+
/**
|
224
|
+
* Sets the value factory manager to use when unmarshaling value instances. If the stream
|
225
|
+
* was initialized with a communicator, the communicator's value factory manager will
|
226
|
+
* be used by default.
|
227
|
+
*
|
228
|
+
* @param vfm The value factory manager.
|
229
|
+
*/
|
230
|
+
void setValueFactoryManager(const ValueFactoryManagerPtr& vfm);
|
231
|
+
|
232
|
+
/**
|
233
|
+
* Sets the logger to use when logging trace messages. If the stream
|
234
|
+
* was initialized with a communicator, the communicator's logger will
|
235
|
+
* be used by default.
|
236
|
+
*
|
237
|
+
* @param logger The logger to use for logging trace messages.
|
238
|
+
*/
|
239
|
+
void setLogger(const LoggerPtr& logger);
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Sets the compact ID resolver to use when unmarshaling value and exception
|
243
|
+
* instances. If the stream was initialized with a communicator, the communicator's
|
244
|
+
* resolver will be used by default.
|
245
|
+
*
|
246
|
+
* @param r The compact ID resolver.
|
247
|
+
*/
|
127
248
|
#ifdef ICE_CPP11_MAPPING
|
128
|
-
void setCompactIdResolver(std::function<std::string(int)>);
|
249
|
+
void setCompactIdResolver(std::function<std::string(int)> r);
|
129
250
|
#else
|
130
|
-
void setCompactIdResolver(const CompactIdResolverPtr&);
|
251
|
+
void setCompactIdResolver(const CompactIdResolverPtr& r);
|
131
252
|
#endif
|
132
253
|
|
133
254
|
#ifndef ICE_CPP11_MAPPING
|
134
|
-
|
255
|
+
/**
|
256
|
+
* Indicates whether to mark instances of Slice classes as collectable. If the stream is
|
257
|
+
* initialized with a communicator, this setting defaults to the value of the
|
258
|
+
* Ice.CollectObjects property, otherwise the setting defaults to false.
|
259
|
+
* @param b True to mark instances as collectable, false otherwise.
|
260
|
+
*/
|
261
|
+
void setCollectObjects(bool b);
|
135
262
|
#endif
|
136
263
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
264
|
+
/**
|
265
|
+
* Indicates whether to slice instances of Slice classes to a known Slice type when a more
|
266
|
+
* derived type is unknown. An instance is "sliced" when no static information is available
|
267
|
+
* for a Slice type ID and no factory can be found for that type, resulting in the creation
|
268
|
+
* of an instance of a less-derived type. If slicing is disabled in this situation, the
|
269
|
+
* stream raises the exception NoValueFactoryException. The default behavior is to allow slicing.
|
270
|
+
* @param b True to enable slicing, false otherwise.
|
271
|
+
*/
|
272
|
+
void setSliceValues(bool b);
|
273
|
+
|
274
|
+
/**
|
275
|
+
* Indicates whether to log messages when instances of Slice classes are sliced. If the stream
|
276
|
+
* is initialized with a communicator, this setting defaults to the value of the Ice.Trace.Slicing
|
277
|
+
* property, otherwise the setting defaults to false.
|
278
|
+
* @param b True to enable logging, false otherwise.
|
279
|
+
*/
|
280
|
+
void setTraceSlicing(bool b);
|
281
|
+
|
282
|
+
/**
|
283
|
+
* Sets an upper limit on the depth of a class graph. If this limit is exceeded during
|
284
|
+
* unmarshaling, the stream raises MarshalException.
|
285
|
+
* @param n The maximum depth.
|
286
|
+
*/
|
287
|
+
void setClassGraphDepthMax(size_t n);
|
288
|
+
|
289
|
+
/**
|
290
|
+
* Obtains the closure data associated with this stream.
|
291
|
+
* @return The data as a void pointer.
|
292
|
+
*/
|
143
293
|
void* getClosure() const;
|
144
|
-
void* setClosure(void*);
|
145
|
-
|
146
|
-
void swap(InputStream&);
|
147
294
|
|
295
|
+
/**
|
296
|
+
* Associates closure data with this stream.
|
297
|
+
* @param p The data as a void pointer.
|
298
|
+
* @return The previous closure data, or nil.
|
299
|
+
*/
|
300
|
+
void* setClosure(void* p);
|
301
|
+
|
302
|
+
/**
|
303
|
+
* Swaps the contents of one stream with another.
|
304
|
+
*
|
305
|
+
* @param other The other stream.
|
306
|
+
*/
|
307
|
+
void swap(InputStream& other);
|
308
|
+
|
309
|
+
/// \cond INTERNAL
|
148
310
|
void resetEncapsulation();
|
311
|
+
/// \endcond
|
149
312
|
|
313
|
+
/**
|
314
|
+
* Resizes the stream to a new size.
|
315
|
+
*
|
316
|
+
* @param sz The new size.
|
317
|
+
*/
|
150
318
|
void resize(Container::size_type sz)
|
151
319
|
{
|
152
320
|
b.resize(sz);
|
153
321
|
i = b.end();
|
154
322
|
}
|
155
323
|
|
324
|
+
/**
|
325
|
+
* Marks the start of a class instance.
|
326
|
+
*/
|
156
327
|
void startValue()
|
157
328
|
{
|
158
329
|
assert(_currentEncaps && _currentEncaps->decoder);
|
159
330
|
_currentEncaps->decoder->startInstance(ValueSlice);
|
160
331
|
}
|
332
|
+
|
333
|
+
/**
|
334
|
+
* Marks the end of a class instance.
|
335
|
+
*
|
336
|
+
* @param preserve Pass true and the stream will preserve the unknown slices of the instance, or false
|
337
|
+
* to discard the unknown slices.
|
338
|
+
* @return An object that encapsulates the unknown slice data.
|
339
|
+
*/
|
161
340
|
SlicedDataPtr endValue(bool preserve)
|
162
341
|
{
|
163
342
|
assert(_currentEncaps && _currentEncaps->decoder);
|
164
343
|
return _currentEncaps->decoder->endInstance(preserve);
|
165
344
|
}
|
166
345
|
|
346
|
+
/**
|
347
|
+
* Marks the start of a user exception.
|
348
|
+
*/
|
167
349
|
void startException()
|
168
350
|
{
|
169
351
|
assert(_currentEncaps && _currentEncaps->decoder);
|
170
352
|
_currentEncaps->decoder->startInstance(ExceptionSlice);
|
171
353
|
}
|
354
|
+
|
355
|
+
/**
|
356
|
+
* Marks the end of a user exception.
|
357
|
+
*
|
358
|
+
* @param preserve Pass true and the stream will preserve the unknown slices of the exception, or false
|
359
|
+
* to discard the unknown slices.
|
360
|
+
* @return An object that encapsulates the unknown slice data.
|
361
|
+
*/
|
172
362
|
SlicedDataPtr endException(bool preserve)
|
173
363
|
{
|
174
364
|
assert(_currentEncaps && _currentEncaps->decoder);
|
175
365
|
return _currentEncaps->decoder->endInstance(preserve);
|
176
366
|
}
|
177
367
|
|
368
|
+
/**
|
369
|
+
* Reads the start of an encapsulation.
|
370
|
+
*
|
371
|
+
* @return The encoding version used by the encapsulation.
|
372
|
+
*/
|
178
373
|
const EncodingVersion& startEncapsulation()
|
179
374
|
{
|
180
375
|
Encaps* oldEncaps = _currentEncaps;
|
@@ -187,7 +382,7 @@ public:
|
|
187
382
|
_currentEncaps = new Encaps();
|
188
383
|
_currentEncaps->previous = oldEncaps;
|
189
384
|
}
|
190
|
-
_currentEncaps->start = i - b.begin();
|
385
|
+
_currentEncaps->start = static_cast<size_t>(i - b.begin());
|
191
386
|
|
192
387
|
//
|
193
388
|
// I don't use readSize() and writeSize() for encapsulations,
|
@@ -214,6 +409,9 @@ public:
|
|
214
409
|
return _currentEncaps->encoding;
|
215
410
|
}
|
216
411
|
|
412
|
+
/**
|
413
|
+
* Ends the current encapsulation.
|
414
|
+
*/
|
217
415
|
void endEncapsulation()
|
218
416
|
{
|
219
417
|
assert(_currentEncaps);
|
@@ -254,6 +452,11 @@ public:
|
|
254
452
|
}
|
255
453
|
}
|
256
454
|
|
455
|
+
/**
|
456
|
+
* Skips an empty encapsulation.
|
457
|
+
*
|
458
|
+
* @return The encapsulation's encoding version.
|
459
|
+
*/
|
257
460
|
EncodingVersion skipEmptyEncapsulation()
|
258
461
|
{
|
259
462
|
Ice::Int sz;
|
@@ -281,11 +484,18 @@ public:
|
|
281
484
|
{
|
282
485
|
// Skip the optional content of the encapsulation if we are expecting an
|
283
486
|
// empty encapsulation.
|
284
|
-
i += sz - sizeof(Ice::Int) - 2;
|
487
|
+
i += static_cast<size_t>(sz) - sizeof(Ice::Int) - 2;
|
285
488
|
}
|
286
489
|
return encoding;
|
287
490
|
}
|
288
491
|
|
492
|
+
/**
|
493
|
+
* Returns a blob of bytes representing an encapsulation.
|
494
|
+
*
|
495
|
+
* @param v A pointer into the internal marshaling buffer representing the start of the encoded encapsulation.
|
496
|
+
* @param sz The number of bytes in the encapsulation.
|
497
|
+
* @return encoding The encapsulation's encoding version.
|
498
|
+
*/
|
289
499
|
EncodingVersion readEncapsulation(const Byte*& v, Int& sz)
|
290
500
|
{
|
291
501
|
EncodingVersion encoding;
|
@@ -301,36 +511,75 @@ public:
|
|
301
511
|
}
|
302
512
|
|
303
513
|
read(encoding);
|
304
|
-
i += sz - sizeof(Int) - 2;
|
514
|
+
i += static_cast<size_t>(sz) - sizeof(Int) - 2;
|
305
515
|
return encoding;
|
306
516
|
}
|
307
517
|
|
518
|
+
/**
|
519
|
+
* Determines the current encoding version.
|
520
|
+
*
|
521
|
+
* @return The encoding version.
|
522
|
+
*/
|
308
523
|
const EncodingVersion& getEncoding() const
|
309
524
|
{
|
310
525
|
return _currentEncaps ? _currentEncaps->encoding : _encoding;
|
311
526
|
}
|
312
527
|
|
528
|
+
/**
|
529
|
+
* Determines the size of the current encapsulation, excluding the encapsulation header.
|
530
|
+
*
|
531
|
+
* @return The size of the encapsulated data.
|
532
|
+
*/
|
313
533
|
Int getEncapsulationSize();
|
534
|
+
|
535
|
+
/**
|
536
|
+
* Skips over an encapsulation.
|
537
|
+
*
|
538
|
+
* @return The encoding version of the skipped encapsulation.
|
539
|
+
*/
|
314
540
|
EncodingVersion skipEncapsulation();
|
315
541
|
|
542
|
+
/**
|
543
|
+
* Reads the start of a value or exception slice.
|
544
|
+
*
|
545
|
+
* @return The Slice type ID for this slice.
|
546
|
+
*/
|
316
547
|
std::string startSlice()
|
317
548
|
{
|
318
549
|
assert(_currentEncaps && _currentEncaps->decoder);
|
319
550
|
return _currentEncaps->decoder->startSlice();
|
320
551
|
}
|
552
|
+
|
553
|
+
/**
|
554
|
+
* Indicates that the end of a value or exception slice has been reached.
|
555
|
+
*/
|
321
556
|
void endSlice()
|
322
557
|
{
|
323
558
|
assert(_currentEncaps && _currentEncaps->decoder);
|
324
559
|
_currentEncaps->decoder->endSlice();
|
325
560
|
}
|
561
|
+
|
562
|
+
/**
|
563
|
+
* Skips over a value or exception slice.
|
564
|
+
*/
|
326
565
|
void skipSlice()
|
327
566
|
{
|
328
567
|
assert(_currentEncaps && _currentEncaps->decoder);
|
329
568
|
_currentEncaps->decoder->skipSlice();
|
330
569
|
}
|
331
570
|
|
571
|
+
/**
|
572
|
+
* Indicates that unmarshaling is complete, except for any class instances. The application must call this method
|
573
|
+
* only if the stream actually contains class instances. Calling readPendingValues triggers the
|
574
|
+
* patch callbacks to inform the application that unmarshaling of an instance is complete.
|
575
|
+
*/
|
332
576
|
void readPendingValues();
|
333
577
|
|
578
|
+
/**
|
579
|
+
* Extracts a size from the stream.
|
580
|
+
*
|
581
|
+
* @return The extracted size.
|
582
|
+
*/
|
334
583
|
Int readSize() // Inlined for performance reasons.
|
335
584
|
{
|
336
585
|
Byte byte;
|
@@ -352,10 +601,28 @@ public:
|
|
352
601
|
}
|
353
602
|
}
|
354
603
|
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
604
|
+
/**
|
605
|
+
* Reads and validates a sequence size.
|
606
|
+
*
|
607
|
+
* @param minSize The minimum size required by the sequence type.
|
608
|
+
* @return The extracted size.
|
609
|
+
*/
|
610
|
+
Int readAndCheckSeqSize(int minSize);
|
611
|
+
|
612
|
+
/**
|
613
|
+
* Reads a blob of bytes from the stream.
|
614
|
+
*
|
615
|
+
* @param bytes The vector to hold a copy of the bytes from the marshaling buffer.
|
616
|
+
* @param sz The number of bytes to read.
|
617
|
+
*/
|
618
|
+
void readBlob(std::vector<Byte>& bytes, Int sz);
|
619
|
+
|
620
|
+
/**
|
621
|
+
* Reads a blob of bytes from the stream.
|
622
|
+
*
|
623
|
+
* @param v A pointer into the internal marshaling buffer representing the start of the blob.
|
624
|
+
* @param sz The number of bytes to read.
|
625
|
+
*/
|
359
626
|
void readBlob(const Byte*& v, Container::size_type sz)
|
360
627
|
{
|
361
628
|
if(sz > 0)
|
@@ -373,11 +640,20 @@ public:
|
|
373
640
|
}
|
374
641
|
}
|
375
642
|
|
643
|
+
/**
|
644
|
+
* Reads a data value from the stream.
|
645
|
+
* @param v Holds the extracted data.
|
646
|
+
*/
|
376
647
|
template<typename T> void read(T& v)
|
377
648
|
{
|
378
649
|
StreamHelper<T, StreamableTraits<T>::helper>::read(this, v);
|
379
650
|
}
|
380
651
|
|
652
|
+
/**
|
653
|
+
* Reads an optional data value from the stream.
|
654
|
+
* @param tag The tag ID.
|
655
|
+
* @param v Holds the extracted data (if any).
|
656
|
+
*/
|
381
657
|
template<typename T> void read(Int tag, IceUtil::Optional<T>& v)
|
382
658
|
{
|
383
659
|
if(readOptional(tag, StreamOptionalHelper<T,
|
@@ -401,6 +677,10 @@ public:
|
|
401
677
|
|
402
678
|
#ifdef ICE_CPP11_MAPPING
|
403
679
|
|
680
|
+
/**
|
681
|
+
* Extracts a sequence of data values from the stream.
|
682
|
+
* @param v A pair of pointers representing the beginning and end of the sequence elements.
|
683
|
+
*/
|
404
684
|
template<typename T> void read(std::pair<const T*, const T*>& v)
|
405
685
|
{
|
406
686
|
auto holder = new std::vector<T>;
|
@@ -418,23 +698,35 @@ public:
|
|
418
698
|
}
|
419
699
|
}
|
420
700
|
|
701
|
+
/**
|
702
|
+
* Reads a list of mandatory data values.
|
703
|
+
*/
|
421
704
|
template<typename T> void readAll(T& v)
|
422
705
|
{
|
423
706
|
read(v);
|
424
707
|
}
|
425
708
|
|
709
|
+
/**
|
710
|
+
* Reads a list of mandatory data values.
|
711
|
+
*/
|
426
712
|
template<typename T, typename... Te> void readAll(T& v, Te&... ve)
|
427
713
|
{
|
428
714
|
read(v);
|
429
715
|
readAll(ve...);
|
430
716
|
}
|
431
717
|
|
718
|
+
/**
|
719
|
+
* Reads a list of optional data values.
|
720
|
+
*/
|
432
721
|
template<typename T>
|
433
722
|
void readAll(std::initializer_list<int> tags, IceUtil::Optional<T>& v)
|
434
723
|
{
|
435
724
|
read(*(tags.begin() + tags.size() - 1), v);
|
436
725
|
}
|
437
726
|
|
727
|
+
/**
|
728
|
+
* Reads a list of optional data values.
|
729
|
+
*/
|
438
730
|
template<typename T, typename... Te>
|
439
731
|
void readAll(std::initializer_list<int> tags, IceUtil::Optional<T>& v, IceUtil::Optional<Te>&... ve)
|
440
732
|
{
|
@@ -445,7 +737,13 @@ public:
|
|
445
737
|
|
446
738
|
#endif
|
447
739
|
|
448
|
-
|
740
|
+
/**
|
741
|
+
* Determine if an optional value is available for reading.
|
742
|
+
*
|
743
|
+
* @param tag The tag associated with the value.
|
744
|
+
* @param expectedFormat The optional format for the value.
|
745
|
+
* @return True if the value is present, false otherwise.
|
746
|
+
*/
|
449
747
|
bool readOptional(Int tag, OptionalFormat expectedFormat)
|
450
748
|
{
|
451
749
|
assert(_currentEncaps);
|
@@ -459,7 +757,10 @@ public:
|
|
459
757
|
}
|
460
758
|
}
|
461
759
|
|
462
|
-
|
760
|
+
/**
|
761
|
+
* Reads a byte from the stream.
|
762
|
+
* @param v The extracted byte.
|
763
|
+
*/
|
463
764
|
void read(Byte& v)
|
464
765
|
{
|
465
766
|
if(i >= b.end())
|
@@ -468,19 +769,38 @@ public:
|
|
468
769
|
}
|
469
770
|
v = *i++;
|
470
771
|
}
|
471
|
-
|
472
|
-
|
772
|
+
|
773
|
+
/**
|
774
|
+
* Reads a sequence of bytes from the stream.
|
775
|
+
* @param v A vector to hold a copy of the bytes.
|
776
|
+
*/
|
777
|
+
void read(std::vector<Byte>& v);
|
778
|
+
|
779
|
+
/**
|
780
|
+
* Reads a sequence of bytes from the stream.
|
781
|
+
* @param v A pair of pointers into the internal marshaling buffer representing the start and end of the
|
782
|
+
* sequence elements.
|
783
|
+
*/
|
784
|
+
void read(std::pair<const Byte*, const Byte*>& v);
|
473
785
|
|
474
786
|
#ifndef ICE_CPP11_MAPPING
|
475
|
-
|
476
|
-
|
787
|
+
/**
|
788
|
+
* Reads a sequence of bytes from the stream.
|
789
|
+
* @param v A pair of pointers into the internal marshaling buffer representing the start and end of the
|
790
|
+
* sequence elements.
|
791
|
+
* @param arr A scoped array.
|
792
|
+
*/
|
793
|
+
void read(std::pair<const Byte*, const Byte*>& v, ::IceUtil::ScopedArray<Byte>& arr)
|
477
794
|
{
|
478
|
-
|
479
|
-
read(
|
795
|
+
arr.reset();
|
796
|
+
read(v);
|
480
797
|
}
|
481
798
|
#endif
|
482
799
|
|
483
|
-
|
800
|
+
/**
|
801
|
+
* Reads a bool from the stream.
|
802
|
+
* @param v The extracted bool.
|
803
|
+
*/
|
484
804
|
void read(bool& v)
|
485
805
|
{
|
486
806
|
if(i >= b.end())
|
@@ -489,24 +809,61 @@ public:
|
|
489
809
|
}
|
490
810
|
v = (0 != *i++);
|
491
811
|
}
|
492
|
-
|
812
|
+
|
813
|
+
/**
|
814
|
+
* Reads a sequence of boolean values from the stream.
|
815
|
+
* @param v A vector to hold a copy of the boolean values.
|
816
|
+
*/
|
817
|
+
void read(std::vector<bool>& v);
|
493
818
|
|
494
819
|
#ifdef ICE_CPP11_MAPPING
|
495
|
-
|
820
|
+
/**
|
821
|
+
* Reads a sequence of boolean values from the stream.
|
822
|
+
* @param v A pair of pointers into the internal marshaling buffer representing the start and end of the
|
823
|
+
* sequence elements.
|
824
|
+
*/
|
825
|
+
void read(std::pair<const bool*, const bool*>& v);
|
496
826
|
#else
|
497
|
-
|
827
|
+
/**
|
828
|
+
* Reads a sequence of boolean values from the stream.
|
829
|
+
* @param v A pair of pointers into the internal marshaling buffer representing the start and end of the
|
830
|
+
* sequence elements.
|
831
|
+
* @param arr A scoped array.
|
832
|
+
*/
|
833
|
+
void read(std::pair<const bool*, const bool*>& v, ::IceUtil::ScopedArray<bool>& arr);
|
498
834
|
#endif
|
499
835
|
|
500
|
-
|
501
|
-
|
502
|
-
|
836
|
+
/**
|
837
|
+
* Reads a short from the stream.
|
838
|
+
* @param v The extracted short.
|
839
|
+
*/
|
840
|
+
void read(Short& v);
|
841
|
+
|
842
|
+
/**
|
843
|
+
* Reads a sequence of shorts from the stream.
|
844
|
+
* @param v A vector to hold a copy of the short values.
|
845
|
+
*/
|
846
|
+
void read(std::vector<Short>& v);
|
847
|
+
|
503
848
|
#ifdef ICE_CPP11_MAPPING
|
504
|
-
|
849
|
+
/**
|
850
|
+
* Reads a sequence of boolean values from the stream.
|
851
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
852
|
+
*/
|
853
|
+
void read(std::pair<const short*, const short*>& v);
|
505
854
|
#else
|
506
|
-
|
855
|
+
/**
|
856
|
+
* Reads a sequence of shorts from the stream.
|
857
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
858
|
+
* @param arr A scoped array.
|
859
|
+
*/
|
860
|
+
void read(std::pair<const Short*, const Short*>& v, ::IceUtil::ScopedArray<Short>& arr);
|
507
861
|
#endif
|
508
862
|
|
509
|
-
|
863
|
+
/**
|
864
|
+
* Reads an int from the stream.
|
865
|
+
* @param v The extracted int.
|
866
|
+
*/
|
510
867
|
void read(Int& v) // Inlined for performance reasons.
|
511
868
|
{
|
512
869
|
if(b.end() - i < static_cast<int>(sizeof(Int)))
|
@@ -530,63 +887,175 @@ public:
|
|
530
887
|
#endif
|
531
888
|
}
|
532
889
|
|
533
|
-
|
890
|
+
/**
|
891
|
+
* Reads a sequence of ints from the stream.
|
892
|
+
* @param v A vector to hold a copy of the int values.
|
893
|
+
*/
|
894
|
+
void read(std::vector<Int>& v);
|
895
|
+
|
534
896
|
#ifdef ICE_CPP11_MAPPING
|
535
|
-
|
897
|
+
/**
|
898
|
+
* Reads a sequence of ints from the stream.
|
899
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
900
|
+
*/
|
901
|
+
void read(std::pair<const int*, const int*>& v);
|
536
902
|
#else
|
537
|
-
|
903
|
+
/**
|
904
|
+
* Reads a sequence of ints from the stream.
|
905
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
906
|
+
* @param arr A scoped array.
|
907
|
+
*/
|
908
|
+
void read(std::pair<const Int*, const Int*>& v, ::IceUtil::ScopedArray<Int>& arr);
|
538
909
|
#endif
|
539
910
|
|
540
|
-
|
911
|
+
/**
|
912
|
+
* Reads a long from the stream.
|
913
|
+
* @param v The extracted long.
|
914
|
+
*/
|
915
|
+
void read(Long& v);
|
916
|
+
|
917
|
+
/**
|
918
|
+
* Reads a sequence of longs from the stream.
|
919
|
+
* @param v A vector to hold a copy of the long values.
|
920
|
+
*/
|
921
|
+
void read(std::vector<Long>& v);
|
541
922
|
|
542
|
-
void read(Long&);
|
543
|
-
void read(std::vector<Long>&);
|
544
923
|
#ifdef ICE_CPP11_MAPPING
|
545
|
-
|
924
|
+
/**
|
925
|
+
* Reads a sequence of longs from the stream.
|
926
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
927
|
+
*/
|
928
|
+
void read(std::pair<const long long*, const long long*>& v);
|
546
929
|
#else
|
547
|
-
|
930
|
+
/**
|
931
|
+
* Reads a sequence of longs from the stream.
|
932
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
933
|
+
* @param arr A scoped array.
|
934
|
+
*/
|
935
|
+
void read(std::pair<const Long*, const Long*>& v, ::IceUtil::ScopedArray<Long>& arr);
|
548
936
|
#endif
|
549
937
|
|
550
|
-
|
551
|
-
|
552
|
-
|
938
|
+
/**
|
939
|
+
* Reads a float from the stream.
|
940
|
+
* @param v The extracted float.
|
941
|
+
*/
|
942
|
+
void read(Float& v);
|
943
|
+
|
944
|
+
/**
|
945
|
+
* Reads a sequence of floats from the stream.
|
946
|
+
* @param v A vector to hold a copy of the float values.
|
947
|
+
*/
|
948
|
+
void read(std::vector<Float>& v);
|
949
|
+
|
553
950
|
#ifdef ICE_CPP11_MAPPING
|
554
|
-
|
951
|
+
/**
|
952
|
+
* Reads a sequence of floats from the stream.
|
953
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
954
|
+
*/
|
955
|
+
void read(std::pair<const float*, const float*>& v);
|
555
956
|
#else
|
556
|
-
|
957
|
+
/**
|
958
|
+
* Reads a sequence of floats from the stream.
|
959
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
960
|
+
* @param arr A scoped array.
|
961
|
+
*/
|
962
|
+
void read(std::pair<const Float*, const Float*>& v, ::IceUtil::ScopedArray<Float>& arr);
|
557
963
|
#endif
|
558
964
|
|
559
|
-
|
560
|
-
|
561
|
-
|
965
|
+
/**
|
966
|
+
* Reads a double from the stream.
|
967
|
+
* @param v The extracted double.
|
968
|
+
*/
|
969
|
+
void read(Double& v);
|
970
|
+
|
971
|
+
/**
|
972
|
+
* Reads a sequence of doubles from the stream.
|
973
|
+
* @param v A vector to hold a copy of the double values.
|
974
|
+
*/
|
975
|
+
void read(std::vector<Double>& v);
|
976
|
+
|
562
977
|
#ifdef ICE_CPP11_MAPPING
|
563
|
-
|
978
|
+
/**
|
979
|
+
* Reads a sequence of doubles from the stream.
|
980
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
981
|
+
*/
|
982
|
+
void read(std::pair<const double*, const double*>& v);
|
564
983
|
#else
|
565
|
-
|
984
|
+
/**
|
985
|
+
* Reads a sequence of doubles from the stream.
|
986
|
+
* @param v A pair of pointers representing the start and end of the sequence elements.
|
987
|
+
* @param arr A scoped array.
|
988
|
+
*/
|
989
|
+
void read(std::pair<const Double*, const Double*>& v, ::IceUtil::ScopedArray<Double>& arr);
|
566
990
|
#endif
|
567
991
|
|
568
|
-
|
992
|
+
/**
|
993
|
+
* Reads a string from the stream.
|
994
|
+
* @param v The extracted string.
|
995
|
+
* @param convert Determines whether the string is processed by the string converter, if one
|
996
|
+
* is installed. The default behavior is to convert strings.
|
997
|
+
*/
|
569
998
|
void read(std::string& v, bool convert = true);
|
570
999
|
|
571
1000
|
#ifdef ICE_CPP11_MAPPING
|
1001
|
+
/**
|
1002
|
+
* Reads a string from the stream.
|
1003
|
+
* @param vdata A pointer to the beginning of the string.
|
1004
|
+
* @param vsize The number of bytes in the string.
|
1005
|
+
* @param convert Determines whether the string is processed by the string converter, if one
|
1006
|
+
* is installed. The default behavior is to convert strings.
|
1007
|
+
*/
|
572
1008
|
void read(const char*& vdata, size_t& vsize, bool convert = true);
|
573
1009
|
#else
|
574
1010
|
// For custom strings, convert = false
|
1011
|
+
/**
|
1012
|
+
* Reads a string from the stream. String conversion is disabled.
|
1013
|
+
* @param vdata A pointer to the beginning of the string.
|
1014
|
+
* @param vsize The number of bytes in the string.
|
1015
|
+
*/
|
575
1016
|
void read(const char*& vdata, size_t& vsize);
|
576
1017
|
|
577
1018
|
// For custom strings, convert = true
|
1019
|
+
/**
|
1020
|
+
* Reads a string from the stream. String conversion is enabled.
|
1021
|
+
* @param vdata A pointer to the beginning of the string.
|
1022
|
+
* @param vsize The number of bytes in the string.
|
1023
|
+
* @param holder Holds the string contents.
|
1024
|
+
*/
|
578
1025
|
void read(const char*& vdata, size_t& vsize, std::string& holder);
|
579
1026
|
#endif
|
580
1027
|
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
1028
|
+
/**
|
1029
|
+
* Reads a sequence of strings from the stream.
|
1030
|
+
* @param v The extracted string sequence.
|
1031
|
+
* @param convert Determines whether strings are processed by the string converter, if one
|
1032
|
+
* is installed. The default behavior is to convert the strings.
|
1033
|
+
*/
|
1034
|
+
void read(std::vector<std::string>& v, bool convert = true);
|
1035
|
+
|
1036
|
+
/**
|
1037
|
+
* Reads a wide string from the stream.
|
1038
|
+
* @param v The extracted string.
|
1039
|
+
*/
|
1040
|
+
void read(std::wstring& v);
|
1041
|
+
|
1042
|
+
/**
|
1043
|
+
* Reads a sequence of wide strings from the stream.
|
1044
|
+
* @param v The extracted sequence.
|
1045
|
+
*/
|
1046
|
+
void read(std::vector<std::wstring>& v);
|
585
1047
|
|
586
|
-
// Proxy
|
587
1048
|
#ifdef ICE_CPP11_MAPPING
|
1049
|
+
/**
|
1050
|
+
* Reads a proxy from the stream.
|
1051
|
+
* @return The proxy as the base ObjectPrx type.
|
1052
|
+
*/
|
588
1053
|
std::shared_ptr<ObjectPrx> readProxy();
|
589
1054
|
|
1055
|
+
/**
|
1056
|
+
* Reads a typed proxy from the stream.
|
1057
|
+
* @param v The proxy as a user-defined type.
|
1058
|
+
*/
|
590
1059
|
template<typename T, typename ::std::enable_if<::std::is_base_of<ObjectPrx, T>::value>::type* = nullptr>
|
591
1060
|
void read(::std::shared_ptr<T>& v)
|
592
1061
|
{
|
@@ -602,14 +1071,26 @@ public:
|
|
602
1071
|
}
|
603
1072
|
}
|
604
1073
|
#else
|
605
|
-
|
1074
|
+
/**
|
1075
|
+
* Reads a proxy from the stream.
|
1076
|
+
* @param v The proxy as the base ObjectPrx type.
|
1077
|
+
*/
|
1078
|
+
void read(ObjectPrx& v);
|
1079
|
+
|
1080
|
+
/**
|
1081
|
+
* Reads a typed proxy from the stream.
|
1082
|
+
* @param v The proxy as a user-defined type.
|
1083
|
+
*/
|
606
1084
|
template<typename T> void read(IceInternal::ProxyHandle<T>& v)
|
607
1085
|
{
|
608
1086
|
_readProxy(this, v); // Generated _readProxy method, necessary for forward declarations.
|
609
1087
|
}
|
610
1088
|
#endif
|
611
1089
|
|
612
|
-
|
1090
|
+
/**
|
1091
|
+
* Reads a value (instance of a Slice class) from the stream.
|
1092
|
+
* @param v The instance.
|
1093
|
+
*/
|
613
1094
|
#ifdef ICE_CPP11_MAPPING // C++11 mapping
|
614
1095
|
template<typename T, typename ::std::enable_if<::std::is_base_of<Value, T>::value>::type* = nullptr>
|
615
1096
|
void read(::std::shared_ptr<T>& v)
|
@@ -623,23 +1104,48 @@ public:
|
|
623
1104
|
}
|
624
1105
|
#endif
|
625
1106
|
|
1107
|
+
/**
|
1108
|
+
* Reads a value (instance of a Slice class) from the stream.
|
1109
|
+
* @param patchFunc The patch callback function.
|
1110
|
+
* @param patchAddr Closure data passed to the callback.
|
1111
|
+
*/
|
626
1112
|
void read(PatchFunc patchFunc, void* patchAddr)
|
627
1113
|
{
|
628
1114
|
initEncaps();
|
629
1115
|
_currentEncaps->decoder->read(patchFunc, patchAddr);
|
630
1116
|
}
|
631
1117
|
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
1118
|
+
/**
|
1119
|
+
* Reads an enumerator from the stream.
|
1120
|
+
* @param maxValue The maximum enumerator value in the definition.
|
1121
|
+
* @return The enumerator value.
|
1122
|
+
*/
|
1123
|
+
Int readEnum(Int maxValue);
|
1124
|
+
|
1125
|
+
/**
|
1126
|
+
* Extracts a user exception from the stream and throws it.
|
1127
|
+
* @param factory If provided, this factory is given the first opportunity to instantiate
|
1128
|
+
* the exception. If not provided, or if the factory does not throw an exception when invoked,
|
1129
|
+
* the stream will attempt to instantiate the exception using static type information.
|
1130
|
+
* @throws UserException The user exception that was unmarshaled.
|
1131
|
+
*/
|
1132
|
+
void throwException(ICE_IN(ICE_DELEGATE(UserExceptionFactory)) factory = ICE_NULLPTR);
|
1133
|
+
|
1134
|
+
/**
|
1135
|
+
* Skips one optional value with the given format.
|
1136
|
+
* @param format The expected format of the optional, if present.
|
1137
|
+
*/
|
1138
|
+
void skipOptional(OptionalFormat format);
|
1139
|
+
|
1140
|
+
/**
|
1141
|
+
* Skips all remaining optional values.
|
1142
|
+
*/
|
640
1143
|
void skipOptionals();
|
641
1144
|
|
642
|
-
|
1145
|
+
/**
|
1146
|
+
* Advances the current stream position by the given number of bytes.
|
1147
|
+
* @param size The number of bytes to skip.
|
1148
|
+
*/
|
643
1149
|
void skip(size_type size)
|
644
1150
|
{
|
645
1151
|
if(i + size > b.end())
|
@@ -648,6 +1154,10 @@ public:
|
|
648
1154
|
}
|
649
1155
|
i += size;
|
650
1156
|
}
|
1157
|
+
|
1158
|
+
/**
|
1159
|
+
* Reads a size at the current position and skips that number of bytes.
|
1160
|
+
*/
|
651
1161
|
void skipSize()
|
652
1162
|
{
|
653
1163
|
Byte bt;
|
@@ -658,22 +1168,32 @@ public:
|
|
658
1168
|
}
|
659
1169
|
}
|
660
1170
|
|
1171
|
+
/**
|
1172
|
+
* Obtains the current position of the stream.
|
1173
|
+
* @return The current position.
|
1174
|
+
*/
|
661
1175
|
size_type pos()
|
662
1176
|
{
|
663
|
-
return i - b.begin();
|
1177
|
+
return static_cast<size_t>(i - b.begin());
|
664
1178
|
}
|
665
1179
|
|
1180
|
+
/**
|
1181
|
+
* Sets a new position for the stream.
|
1182
|
+
* @param p The new position.
|
1183
|
+
*/
|
666
1184
|
void pos(size_type p)
|
667
1185
|
{
|
668
1186
|
i = b.begin() + p;
|
669
1187
|
}
|
670
1188
|
|
1189
|
+
/// \cond INTERNAL
|
671
1190
|
InputStream(IceInternal::Instance*, const EncodingVersion&);
|
672
1191
|
InputStream(IceInternal::Instance*, const EncodingVersion&, IceInternal::Buffer&, bool = false);
|
673
1192
|
|
674
1193
|
void initialize(IceInternal::Instance*, const EncodingVersion&);
|
675
1194
|
|
676
1195
|
bool readOptImpl(Int, OptionalFormat);
|
1196
|
+
/// \endcond
|
677
1197
|
|
678
1198
|
private:
|
679
1199
|
|