zeroc-ice 3.7.10 → 3.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (961) hide show
  1. checksums.yaml +4 -4
  2. data/dist/IceRuby/Communicator.cpp +801 -0
  3. data/dist/IceRuby/Connection.cpp +536 -0
  4. data/dist/IceRuby/Endpoint.cpp +344 -0
  5. data/dist/IceRuby/ImplicitContext.cpp +148 -0
  6. data/dist/IceRuby/Logger.cpp +151 -0
  7. data/dist/IceRuby/Operation.cpp +665 -0
  8. data/dist/IceRuby/Properties.cpp +369 -0
  9. data/dist/IceRuby/Types.cpp +3336 -0
  10. data/dist/IceRuby/Types.h +604 -0
  11. data/dist/IceRuby/ValueFactoryManager.cpp +445 -0
  12. data/dist/ice/cpp/include/Ice/ExceptionHelpers.h +74 -0
  13. data/dist/ice/cpp/include/Ice/Initialize.h +957 -0
  14. data/dist/ice/cpp/include/Ice/InputStream.h +1517 -0
  15. data/dist/ice/cpp/include/Ice/MetricsObserverI.h +669 -0
  16. data/dist/ice/cpp/include/Ice/OutgoingAsync.h +868 -0
  17. data/dist/ice/cpp/include/Ice/Proxy.h +5171 -0
  18. data/dist/ice/cpp/include/Ice/UserExceptionFactory.h +90 -0
  19. data/dist/ice/cpp/include/IceDiscovery/IceDiscovery.h +1889 -0
  20. data/dist/ice/cpp/include/IceLocatorDiscovery/IceLocatorDiscovery.h +1197 -0
  21. data/dist/ice/cpp/include/IceUtil/Cond.h +317 -0
  22. data/dist/ice/cpp/include/IceUtil/Config.h +392 -0
  23. data/dist/ice/cpp/include/IceUtil/CtrlCHandler.h +96 -0
  24. data/dist/ice/cpp/include/IceUtil/InputUtil.h +42 -0
  25. data/dist/ice/cpp/include/IceUtil/ResourceConfig.h +37 -0
  26. data/dist/ice/cpp/include/IceUtil/Timer.h +153 -0
  27. data/dist/ice/cpp/include/generated/Glacier2/Metrics.h +475 -0
  28. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifier.h +1430 -0
  29. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifierF.h +147 -0
  30. data/dist/ice/cpp/include/generated/Glacier2/Router.h +3260 -0
  31. data/dist/ice/cpp/include/generated/Glacier2/RouterF.h +125 -0
  32. data/dist/ice/cpp/include/generated/Glacier2/SSLInfo.h +223 -0
  33. data/dist/ice/cpp/include/generated/Glacier2/Session.h +5894 -0
  34. data/dist/ice/cpp/include/generated/Ice/BuiltinSequences.h +170 -0
  35. data/dist/ice/cpp/include/generated/Ice/Communicator.h +1162 -0
  36. data/dist/ice/cpp/include/generated/Ice/CommunicatorF.h +101 -0
  37. data/dist/ice/cpp/include/generated/Ice/Connection.h +1703 -0
  38. data/dist/ice/cpp/include/generated/Ice/ConnectionF.h +119 -0
  39. data/dist/ice/cpp/include/generated/Ice/Current.h +322 -0
  40. data/dist/ice/cpp/include/generated/Ice/Endpoint.h +979 -0
  41. data/dist/ice/cpp/include/generated/Ice/EndpointF.h +166 -0
  42. data/dist/ice/cpp/include/generated/Ice/EndpointTypes.h +118 -0
  43. data/dist/ice/cpp/include/generated/Ice/FacetMap.h +80 -0
  44. data/dist/ice/cpp/include/generated/Ice/Identity.h +264 -0
  45. data/dist/ice/cpp/include/generated/Ice/ImplicitContext.h +284 -0
  46. data/dist/ice/cpp/include/generated/Ice/ImplicitContextF.h +101 -0
  47. data/dist/ice/cpp/include/generated/Ice/Instrumentation.h +1203 -0
  48. data/dist/ice/cpp/include/generated/Ice/InstrumentationF.h +128 -0
  49. data/dist/ice/cpp/include/generated/Ice/LocalException.h +7437 -0
  50. data/dist/ice/cpp/include/generated/Ice/Locator.h +3898 -0
  51. data/dist/ice/cpp/include/generated/Ice/LocatorF.h +147 -0
  52. data/dist/ice/cpp/include/generated/Ice/Logger.h +237 -0
  53. data/dist/ice/cpp/include/generated/Ice/LoggerF.h +101 -0
  54. data/dist/ice/cpp/include/generated/Ice/Metrics.h +4769 -0
  55. data/dist/ice/cpp/include/generated/Ice/ObjectAdapter.h +1181 -0
  56. data/dist/ice/cpp/include/generated/Ice/ObjectAdapterF.h +101 -0
  57. data/dist/ice/cpp/include/generated/Ice/ObjectFactory.h +203 -0
  58. data/dist/ice/cpp/include/generated/Ice/Plugin.h +318 -0
  59. data/dist/ice/cpp/include/generated/Ice/PluginF.h +110 -0
  60. data/dist/ice/cpp/include/generated/Ice/Process.h +977 -0
  61. data/dist/ice/cpp/include/generated/Ice/ProcessF.h +125 -0
  62. data/dist/ice/cpp/include/generated/Ice/Properties.h +452 -0
  63. data/dist/ice/cpp/include/generated/Ice/PropertiesAdmin.h +1366 -0
  64. data/dist/ice/cpp/include/generated/Ice/PropertiesF.h +134 -0
  65. data/dist/ice/cpp/include/generated/Ice/RemoteLogger.h +2707 -0
  66. data/dist/ice/cpp/include/generated/Ice/Router.h +1850 -0
  67. data/dist/ice/cpp/include/generated/Ice/RouterF.h +125 -0
  68. data/dist/ice/cpp/include/generated/Ice/ServantLocator.h +305 -0
  69. data/dist/ice/cpp/include/generated/Ice/ServantLocatorF.h +101 -0
  70. data/dist/ice/cpp/include/generated/Ice/SliceChecksumDict.h +84 -0
  71. data/dist/ice/cpp/include/generated/Ice/ValueFactory.h +330 -0
  72. data/dist/ice/cpp/include/generated/Ice/Version.h +357 -0
  73. data/dist/ice/cpp/include/generated/IceBox/IceBox.h +3269 -0
  74. data/dist/ice/cpp/include/generated/IceGrid/Admin.h +33773 -0
  75. data/dist/ice/cpp/include/generated/IceGrid/Descriptor.h +5254 -0
  76. data/dist/ice/cpp/include/generated/IceGrid/Exception.h +2834 -0
  77. data/dist/ice/cpp/include/generated/IceGrid/FileParser.h +824 -0
  78. data/dist/ice/cpp/include/generated/IceGrid/PluginFacade.h +635 -0
  79. data/dist/ice/cpp/include/generated/IceGrid/Registry.h +5089 -0
  80. data/dist/ice/cpp/include/generated/IceGrid/Session.h +2240 -0
  81. data/dist/ice/cpp/include/generated/IceGrid/UserAccountMapper.h +800 -0
  82. data/dist/ice/cpp/include/generated/IcePatch2/FileInfo.h +325 -0
  83. data/dist/ice/cpp/include/generated/IcePatch2/FileServer.h +2891 -0
  84. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +228 -0
  85. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +101 -0
  86. data/dist/ice/cpp/include/generated/IceSSL/EndpointInfo.h +186 -0
  87. data/dist/ice/cpp/include/generated/IceStorm/IceStorm.h +6627 -0
  88. data/dist/ice/cpp/include/generated/IceStorm/Metrics.h +665 -0
  89. data/dist/ice/cpp/src/Ice/Application.cpp +661 -0
  90. data/dist/ice/cpp/src/Ice/BatchRequestQueue.cpp +269 -0
  91. data/dist/ice/cpp/src/Ice/BatchRequestQueue.h +66 -0
  92. data/dist/ice/cpp/src/Ice/CommunicatorI.cpp +596 -0
  93. data/dist/ice/cpp/src/Ice/ConnectionI.cpp +3715 -0
  94. data/dist/ice/cpp/src/Ice/CountDownLatch.cpp +171 -0
  95. data/dist/ice/cpp/src/Ice/DLLMain.cpp +50 -0
  96. data/dist/ice/cpp/src/Ice/EndpointFactory.cpp +189 -0
  97. data/dist/ice/cpp/src/Ice/EndpointI.cpp +98 -0
  98. data/dist/ice/cpp/src/Ice/IPEndpointI.cpp +716 -0
  99. data/dist/ice/cpp/src/Ice/InputStream.cpp +2758 -0
  100. data/dist/ice/cpp/src/Ice/MetricsAdminI.cpp +694 -0
  101. data/dist/ice/cpp/src/Ice/Network.cpp +2262 -0
  102. data/dist/ice/cpp/src/Ice/NetworkProxy.cpp +322 -0
  103. data/dist/ice/cpp/src/Ice/ObjectAdapterI.cpp +1531 -0
  104. data/dist/ice/cpp/src/Ice/OutgoingAsync.cpp +1322 -0
  105. data/dist/ice/cpp/src/Ice/PluginManagerI.cpp +503 -0
  106. data/dist/ice/cpp/src/Ice/PropertyNames.cpp +1428 -0
  107. data/dist/ice/cpp/src/Ice/PropertyNames.h +78 -0
  108. data/dist/ice/cpp/src/Ice/Proxy.cpp +1604 -0
  109. data/dist/ice/cpp/src/Ice/Reference.cpp +2052 -0
  110. data/dist/ice/cpp/src/Ice/ReferenceFactory.cpp +890 -0
  111. data/dist/ice/cpp/src/Ice/Selector.cpp +1543 -0
  112. data/dist/ice/cpp/src/Ice/Service.cpp +1883 -0
  113. data/dist/ice/cpp/src/Ice/ThreadPool.cpp +1292 -0
  114. data/dist/ice/cpp/src/Ice/Timer.cpp +269 -0
  115. data/dist/ice/cpp/src/Ice/UdpTransceiver.cpp +824 -0
  116. data/dist/ice/cpp/src/Ice/WSTransceiver.cpp +1770 -0
  117. data/dist/ice/cpp/src/Ice/generated/BuiltinSequences.cpp +49 -0
  118. data/dist/ice/cpp/src/Ice/generated/Communicator.cpp +79 -0
  119. data/dist/ice/cpp/src/Ice/generated/CommunicatorF.cpp +61 -0
  120. data/dist/ice/cpp/src/Ice/generated/Connection.cpp +155 -0
  121. data/dist/ice/cpp/src/Ice/generated/ConnectionF.cpp +61 -0
  122. data/dist/ice/cpp/src/Ice/generated/Current.cpp +62 -0
  123. data/dist/ice/cpp/src/Ice/generated/Endpoint.cpp +147 -0
  124. data/dist/ice/cpp/src/Ice/generated/EndpointF.cpp +61 -0
  125. data/dist/ice/cpp/src/Ice/generated/EndpointTypes.cpp +51 -0
  126. data/dist/ice/cpp/src/Ice/generated/FacetMap.cpp +49 -0
  127. data/dist/ice/cpp/src/Ice/generated/Identity.cpp +57 -0
  128. data/dist/ice/cpp/src/Ice/generated/ImplicitContext.cpp +75 -0
  129. data/dist/ice/cpp/src/Ice/generated/ImplicitContextF.cpp +61 -0
  130. data/dist/ice/cpp/src/Ice/generated/Instrumentation.cpp +188 -0
  131. data/dist/ice/cpp/src/Ice/generated/InstrumentationF.cpp +66 -0
  132. data/dist/ice/cpp/src/Ice/generated/LocalException.cpp +3262 -0
  133. data/dist/ice/cpp/src/Ice/generated/Locator.cpp +2042 -0
  134. data/dist/ice/cpp/src/Ice/generated/LocatorF.cpp +63 -0
  135. data/dist/ice/cpp/src/Ice/generated/Logger.cpp +73 -0
  136. data/dist/ice/cpp/src/Ice/generated/LoggerF.cpp +61 -0
  137. data/dist/ice/cpp/src/Ice/generated/Metrics.cpp +2352 -0
  138. data/dist/ice/cpp/src/Ice/generated/ObjectAdapter.cpp +79 -0
  139. data/dist/ice/cpp/src/Ice/generated/ObjectAdapterF.cpp +61 -0
  140. data/dist/ice/cpp/src/Ice/generated/ObjectFactory.cpp +75 -0
  141. data/dist/ice/cpp/src/Ice/generated/Plugin.cpp +87 -0
  142. data/dist/ice/cpp/src/Ice/generated/PluginF.cpp +61 -0
  143. data/dist/ice/cpp/src/Ice/generated/Process.cpp +471 -0
  144. data/dist/ice/cpp/src/Ice/generated/ProcessF.cpp +63 -0
  145. data/dist/ice/cpp/src/Ice/generated/Properties.cpp +78 -0
  146. data/dist/ice/cpp/src/Ice/generated/PropertiesAdmin.cpp +603 -0
  147. data/dist/ice/cpp/src/Ice/generated/PropertiesF.cpp +63 -0
  148. data/dist/ice/cpp/src/Ice/generated/RemoteLogger.cpp +1171 -0
  149. data/dist/ice/cpp/src/Ice/generated/Router.cpp +977 -0
  150. data/dist/ice/cpp/src/Ice/generated/RouterF.cpp +63 -0
  151. data/dist/ice/cpp/src/Ice/generated/ServantLocator.cpp +75 -0
  152. data/dist/ice/cpp/src/Ice/generated/ServantLocatorF.cpp +61 -0
  153. data/dist/ice/cpp/src/Ice/generated/SliceChecksumDict.cpp +49 -0
  154. data/dist/ice/cpp/src/Ice/generated/ValueFactory.cpp +83 -0
  155. data/dist/ice/cpp/src/Ice/generated/Version.cpp +57 -0
  156. data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.cpp +154 -0
  157. data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.h +49 -0
  158. data/dist/ice/cpp/src/Ice/ios/StreamConnector.cpp +146 -0
  159. data/dist/ice/cpp/src/Ice/ios/StreamConnector.h +52 -0
  160. data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.cpp +477 -0
  161. data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.h +156 -0
  162. data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.cpp +570 -0
  163. data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.h +93 -0
  164. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery/IceDiscovery.h +1889 -0
  165. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery.cpp +915 -0
  166. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery/IceLocatorDiscovery.h +1197 -0
  167. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery.cpp +730 -0
  168. data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +1155 -0
  169. data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +1093 -0
  170. data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +290 -0
  171. data/dist/ice/cpp/src/IceSSL/PluginI.cpp +246 -0
  172. data/dist/ice/cpp/src/IceSSL/RFC2253.cpp +490 -0
  173. data/dist/ice/cpp/src/IceSSL/SChannelEngine.cpp +1293 -0
  174. data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +1175 -0
  175. data/dist/ice/cpp/src/IceSSL/SSLEngine.cpp +328 -0
  176. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +1413 -0
  177. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.h +66 -0
  178. data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +721 -0
  179. data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +868 -0
  180. data/dist/ice/cpp/src/IceSSL/TrustManager.cpp +247 -0
  181. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfo.cpp +75 -0
  182. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfoF.cpp +61 -0
  183. data/dist/ice/cpp/src/IceSSL/generated/EndpointInfo.cpp +75 -0
  184. data/dist/ice/cpp/src/IceUtil/ConvertUTF.cpp +476 -0
  185. data/dist/ice/cpp/src/IceUtil/FileUtil.cpp +471 -0
  186. data/dist/ice/cpp/src/IceUtil/StringConverter.cpp +690 -0
  187. data/dist/ice/cpp/src/IceUtil/Time.cpp +307 -0
  188. data/dist/ice/cpp/src/Slice/JavaUtil.cpp +5183 -0
  189. data/dist/ice/cpp/src/slice2rb/Main.cpp +35 -0
  190. data/dist/ice/mcpp/directive.c +1407 -0
  191. data/dist/ice/mcpp/internal.H +530 -0
  192. data/dist/ice/mcpp/mcpp_main.c +792 -0
  193. data/dist/ice/mcpp/support.c +1985 -0
  194. data/dist/ice/mcpp/system.c +2741 -0
  195. data/dist/ice/slice/Ice/Connection.ice +516 -0
  196. data/dist/ice/slice/Ice/Locator.ice +239 -0
  197. data/dist/ice/slice/Ice/Metrics.ice +436 -0
  198. data/dist/ice/slice/Ice/ObjectAdapter.ice +710 -0
  199. data/dist/ice/slice/Ice/Router.ice +103 -0
  200. data/dist/ice/slice/IceGrid/PluginFacade.ice +329 -0
  201. data/dist/ice/slice/IceStorm/IceStorm.ice +414 -0
  202. data/dist/lib/Glacier2/Metrics.rb +56 -0
  203. data/dist/lib/Glacier2/PermissionsVerifier.rb +93 -0
  204. data/dist/lib/Glacier2/PermissionsVerifierF.rb +30 -0
  205. data/dist/lib/Glacier2/Router.rb +95 -0
  206. data/dist/lib/Glacier2/RouterF.rb +25 -0
  207. data/dist/lib/Glacier2/SSLInfo.rb +72 -0
  208. data/dist/lib/Glacier2/Session.rb +247 -0
  209. data/dist/lib/Ice/BuiltinSequences.rb +60 -0
  210. data/dist/lib/Ice/Communicator.rb +87 -0
  211. data/dist/lib/Ice/CommunicatorF.rb +24 -0
  212. data/dist/lib/Ice/Connection.rb +413 -0
  213. data/dist/lib/Ice/ConnectionF.rb +32 -0
  214. data/dist/lib/Ice/Current.rb +141 -0
  215. data/dist/lib/Ice/Endpoint.rb +187 -0
  216. data/dist/lib/Ice/EndpointF.rb +48 -0
  217. data/dist/lib/Ice/EndpointTypes.rb +69 -0
  218. data/dist/lib/Ice/FacetMap.rb +24 -0
  219. data/dist/lib/Ice/Identity.rb +63 -0
  220. data/dist/lib/Ice/ImplicitContext.rb +26 -0
  221. data/dist/lib/Ice/ImplicitContextF.rb +24 -0
  222. data/dist/lib/Ice/Instrumentation.rb +169 -0
  223. data/dist/lib/Ice/InstrumentationF.rb +31 -0
  224. data/dist/lib/Ice/LocalException.rb +1031 -0
  225. data/dist/lib/Ice/Locator.rb +196 -0
  226. data/dist/lib/Ice/LocatorF.rb +30 -0
  227. data/dist/lib/Ice/Logger.rb +24 -0
  228. data/dist/lib/Ice/LoggerF.rb +24 -0
  229. data/dist/lib/Ice/Metrics.rb +337 -0
  230. data/dist/lib/Ice/ObjectAdapter.rb +29 -0
  231. data/dist/lib/Ice/ObjectAdapterF.rb +24 -0
  232. data/dist/lib/Ice/ObjectFactory.rb +24 -0
  233. data/dist/lib/Ice/Plugin.rb +30 -0
  234. data/dist/lib/Ice/PluginF.rb +28 -0
  235. data/dist/lib/Ice/Process.rb +53 -0
  236. data/dist/lib/Ice/ProcessF.rb +25 -0
  237. data/dist/lib/Ice/Properties.rb +25 -0
  238. data/dist/lib/Ice/PropertiesAdmin.rb +63 -0
  239. data/dist/lib/Ice/PropertiesF.rb +29 -0
  240. data/dist/lib/Ice/RemoteLogger.rb +207 -0
  241. data/dist/lib/Ice/Router.rb +87 -0
  242. data/dist/lib/Ice/RouterF.rb +25 -0
  243. data/dist/lib/Ice/ServantLocator.rb +26 -0
  244. data/dist/lib/Ice/ServantLocatorF.rb +24 -0
  245. data/dist/lib/Ice/SliceChecksumDict.rb +24 -0
  246. data/dist/lib/Ice/ValueFactory.rb +28 -0
  247. data/dist/lib/Ice/Version.rb +90 -0
  248. data/dist/lib/IceBox/IceBox.rb +164 -0
  249. data/dist/lib/IceGrid/Admin.rb +1196 -0
  250. data/dist/lib/IceGrid/Descriptor.rb +1034 -0
  251. data/dist/lib/IceGrid/Exception.rb +376 -0
  252. data/dist/lib/IceGrid/FileParser.rb +65 -0
  253. data/dist/lib/IceGrid/PluginFacade.rb +35 -0
  254. data/dist/lib/IceGrid/Registry.rb +209 -0
  255. data/dist/lib/IceGrid/Session.rb +71 -0
  256. data/dist/lib/IceGrid/UserAccountMapper.rb +61 -0
  257. data/dist/lib/IcePatch2/FileInfo.rb +115 -0
  258. data/dist/lib/IcePatch2/FileServer.rb +123 -0
  259. data/dist/lib/IceStorm/IceStorm.rb +332 -0
  260. data/dist/lib/IceStorm/Metrics.rb +73 -0
  261. data/extconf.rb +91 -0
  262. data/ice.gemspec +21 -16
  263. metadata +715 -711
  264. data/ICE_LICENSE +0 -48
  265. data/LICENSE +0 -340
  266. data/MCPP_LICENSE +0 -29
  267. data/ext/Communicator.cpp +0 -792
  268. data/ext/Connection.cpp +0 -532
  269. data/ext/Endpoint.cpp +0 -340
  270. data/ext/ImplicitContext.cpp +0 -144
  271. data/ext/Logger.cpp +0 -147
  272. data/ext/Operation.cpp +0 -661
  273. data/ext/Properties.cpp +0 -365
  274. data/ext/Types.cpp +0 -3325
  275. data/ext/Types.h +0 -595
  276. data/ext/ValueFactoryManager.cpp +0 -441
  277. data/ext/extconf.rb +0 -97
  278. data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +0 -74
  279. data/ext/ice/cpp/include/Ice/Initialize.h +0 -957
  280. data/ext/ice/cpp/include/Ice/InputStream.h +0 -1514
  281. data/ext/ice/cpp/include/Ice/MetricsObserverI.h +0 -669
  282. data/ext/ice/cpp/include/Ice/OutgoingAsync.h +0 -856
  283. data/ext/ice/cpp/include/Ice/Proxy.h +0 -5154
  284. data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +0 -88
  285. data/ext/ice/cpp/include/IceSSL/UWP.h +0 -62
  286. data/ext/ice/cpp/include/IceUtil/Cond.h +0 -317
  287. data/ext/ice/cpp/include/IceUtil/Config.h +0 -392
  288. data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +0 -92
  289. data/ext/ice/cpp/include/IceUtil/InputUtil.h +0 -42
  290. data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +0 -37
  291. data/ext/ice/cpp/include/IceUtil/Timer.h +0 -144
  292. data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +0 -170
  293. data/ext/ice/cpp/include/generated/Ice/Communicator.h +0 -1162
  294. data/ext/ice/cpp/include/generated/Ice/CommunicatorF.h +0 -101
  295. data/ext/ice/cpp/include/generated/Ice/Connection.h +0 -1703
  296. data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +0 -119
  297. data/ext/ice/cpp/include/generated/Ice/Current.h +0 -322
  298. data/ext/ice/cpp/include/generated/Ice/Endpoint.h +0 -979
  299. data/ext/ice/cpp/include/generated/Ice/EndpointF.h +0 -166
  300. data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +0 -118
  301. data/ext/ice/cpp/include/generated/Ice/FacetMap.h +0 -80
  302. data/ext/ice/cpp/include/generated/Ice/Identity.h +0 -264
  303. data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +0 -284
  304. data/ext/ice/cpp/include/generated/Ice/ImplicitContextF.h +0 -101
  305. data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +0 -1203
  306. data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +0 -128
  307. data/ext/ice/cpp/include/generated/Ice/LocalException.h +0 -7437
  308. data/ext/ice/cpp/include/generated/Ice/Locator.h +0 -3898
  309. data/ext/ice/cpp/include/generated/Ice/LocatorF.h +0 -147
  310. data/ext/ice/cpp/include/generated/Ice/Logger.h +0 -237
  311. data/ext/ice/cpp/include/generated/Ice/LoggerF.h +0 -101
  312. data/ext/ice/cpp/include/generated/Ice/Metrics.h +0 -4769
  313. data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +0 -1181
  314. data/ext/ice/cpp/include/generated/Ice/ObjectAdapterF.h +0 -101
  315. data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +0 -203
  316. data/ext/ice/cpp/include/generated/Ice/Plugin.h +0 -318
  317. data/ext/ice/cpp/include/generated/Ice/PluginF.h +0 -110
  318. data/ext/ice/cpp/include/generated/Ice/Process.h +0 -977
  319. data/ext/ice/cpp/include/generated/Ice/ProcessF.h +0 -125
  320. data/ext/ice/cpp/include/generated/Ice/Properties.h +0 -452
  321. data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +0 -1366
  322. data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +0 -134
  323. data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +0 -2707
  324. data/ext/ice/cpp/include/generated/Ice/Router.h +0 -1850
  325. data/ext/ice/cpp/include/generated/Ice/RouterF.h +0 -125
  326. data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +0 -305
  327. data/ext/ice/cpp/include/generated/Ice/ServantLocatorF.h +0 -101
  328. data/ext/ice/cpp/include/generated/Ice/SliceChecksumDict.h +0 -84
  329. data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +0 -330
  330. data/ext/ice/cpp/include/generated/Ice/Version.h +0 -357
  331. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +0 -228
  332. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +0 -101
  333. data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +0 -186
  334. data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +0 -250
  335. data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +0 -59
  336. data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +0 -49
  337. data/ext/ice/cpp/src/Ice/Communicator.cpp +0 -79
  338. data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +0 -61
  339. data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +0 -586
  340. data/ext/ice/cpp/src/Ice/Connection.cpp +0 -155
  341. data/ext/ice/cpp/src/Ice/ConnectionF.cpp +0 -61
  342. data/ext/ice/cpp/src/Ice/ConnectionI.cpp +0 -3670
  343. data/ext/ice/cpp/src/Ice/CountDownLatch.cpp +0 -171
  344. data/ext/ice/cpp/src/Ice/Current.cpp +0 -62
  345. data/ext/ice/cpp/src/Ice/Endpoint.cpp +0 -147
  346. data/ext/ice/cpp/src/Ice/EndpointF.cpp +0 -61
  347. data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +0 -189
  348. data/ext/ice/cpp/src/Ice/EndpointI.cpp +0 -98
  349. data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +0 -51
  350. data/ext/ice/cpp/src/Ice/FacetMap.cpp +0 -49
  351. data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +0 -710
  352. data/ext/ice/cpp/src/Ice/Identity.cpp +0 -57
  353. data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +0 -75
  354. data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +0 -61
  355. data/ext/ice/cpp/src/Ice/InputStream.cpp +0 -2741
  356. data/ext/ice/cpp/src/Ice/Instrumentation.cpp +0 -188
  357. data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +0 -66
  358. data/ext/ice/cpp/src/Ice/LocalException.cpp +0 -3262
  359. data/ext/ice/cpp/src/Ice/Locator.cpp +0 -2042
  360. data/ext/ice/cpp/src/Ice/LocatorF.cpp +0 -63
  361. data/ext/ice/cpp/src/Ice/Logger.cpp +0 -73
  362. data/ext/ice/cpp/src/Ice/LoggerF.cpp +0 -61
  363. data/ext/ice/cpp/src/Ice/Metrics.cpp +0 -2352
  364. data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +0 -694
  365. data/ext/ice/cpp/src/Ice/Network.cpp +0 -2249
  366. data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +0 -311
  367. data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +0 -79
  368. data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +0 -61
  369. data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +0 -1530
  370. data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +0 -75
  371. data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +0 -1322
  372. data/ext/ice/cpp/src/Ice/Plugin.cpp +0 -87
  373. data/ext/ice/cpp/src/Ice/PluginF.cpp +0 -61
  374. data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +0 -503
  375. data/ext/ice/cpp/src/Ice/Process.cpp +0 -471
  376. data/ext/ice/cpp/src/Ice/ProcessF.cpp +0 -63
  377. data/ext/ice/cpp/src/Ice/Properties.cpp +0 -78
  378. data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +0 -603
  379. data/ext/ice/cpp/src/Ice/PropertiesF.cpp +0 -63
  380. data/ext/ice/cpp/src/Ice/PropertyNames.cpp +0 -1429
  381. data/ext/ice/cpp/src/Ice/PropertyNames.h +0 -78
  382. data/ext/ice/cpp/src/Ice/Proxy.cpp +0 -1601
  383. data/ext/ice/cpp/src/Ice/Reference.cpp +0 -2046
  384. data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +0 -888
  385. data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +0 -1171
  386. data/ext/ice/cpp/src/Ice/Router.cpp +0 -977
  387. data/ext/ice/cpp/src/Ice/RouterF.cpp +0 -63
  388. data/ext/ice/cpp/src/Ice/Selector.cpp +0 -1525
  389. data/ext/ice/cpp/src/Ice/ServantLocator.cpp +0 -75
  390. data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +0 -61
  391. data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +0 -49
  392. data/ext/ice/cpp/src/Ice/ThreadPool.cpp +0 -1292
  393. data/ext/ice/cpp/src/Ice/Timer.cpp +0 -263
  394. data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +0 -806
  395. data/ext/ice/cpp/src/Ice/ValueFactory.cpp +0 -83
  396. data/ext/ice/cpp/src/Ice/Version.cpp +0 -57
  397. data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +0 -1704
  398. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +0 -915
  399. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +0 -1889
  400. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +0 -730
  401. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +0 -1197
  402. data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +0 -75
  403. data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +0 -61
  404. data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +0 -75
  405. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +0 -1147
  406. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +0 -1092
  407. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +0 -288
  408. data/ext/ice/cpp/src/IceSSL/PluginI.cpp +0 -246
  409. data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +0 -490
  410. data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +0 -1283
  411. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +0 -1174
  412. data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +0 -313
  413. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +0 -1308
  414. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +0 -59
  415. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +0 -719
  416. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +0 -868
  417. data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +0 -236
  418. data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +0 -266
  419. data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +0 -338
  420. data/ext/ice/cpp/src/IceSSL/UWPEngine.h +0 -41
  421. data/ext/ice/cpp/src/IceSSL/UWPEngineF.h +0 -26
  422. data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +0 -89
  423. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +0 -383
  424. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +0 -71
  425. data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +0 -472
  426. data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +0 -471
  427. data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +0 -690
  428. data/ext/ice/cpp/src/IceUtil/Time.cpp +0 -307
  429. data/ext/ice/cpp/src/Slice/JavaUtil.cpp +0 -5176
  430. data/ext/ice/mcpp/CMakeLists.txt +0 -80
  431. data/ext/ice/mcpp/LICENSE +0 -29
  432. data/ext/ice/mcpp/Makefile +0 -63
  433. data/ext/ice/mcpp/README.md +0 -32
  434. data/ext/ice/mcpp/directive.c +0 -1404
  435. data/ext/ice/mcpp/internal.H +0 -530
  436. data/ext/ice/mcpp/main.c +0 -792
  437. data/ext/ice/mcpp/mcpp.gyp +0 -88
  438. data/ext/ice/mcpp/support.c +0 -1985
  439. data/ext/ice/mcpp/system.c +0 -2737
  440. data/lib/Glacier2/Metrics.rb +0 -56
  441. data/lib/Glacier2/PermissionsVerifier.rb +0 -93
  442. data/lib/Glacier2/PermissionsVerifierF.rb +0 -30
  443. data/lib/Glacier2/Router.rb +0 -95
  444. data/lib/Glacier2/RouterF.rb +0 -25
  445. data/lib/Glacier2/SSLInfo.rb +0 -72
  446. data/lib/Glacier2/Session.rb +0 -247
  447. data/lib/Ice/BuiltinSequences.rb +0 -60
  448. data/lib/Ice/Communicator.rb +0 -87
  449. data/lib/Ice/CommunicatorF.rb +0 -24
  450. data/lib/Ice/Connection.rb +0 -413
  451. data/lib/Ice/ConnectionF.rb +0 -32
  452. data/lib/Ice/Current.rb +0 -141
  453. data/lib/Ice/Endpoint.rb +0 -187
  454. data/lib/Ice/EndpointF.rb +0 -48
  455. data/lib/Ice/EndpointTypes.rb +0 -69
  456. data/lib/Ice/FacetMap.rb +0 -24
  457. data/lib/Ice/Identity.rb +0 -63
  458. data/lib/Ice/ImplicitContext.rb +0 -26
  459. data/lib/Ice/ImplicitContextF.rb +0 -24
  460. data/lib/Ice/Instrumentation.rb +0 -169
  461. data/lib/Ice/InstrumentationF.rb +0 -31
  462. data/lib/Ice/LocalException.rb +0 -1031
  463. data/lib/Ice/Locator.rb +0 -196
  464. data/lib/Ice/LocatorF.rb +0 -30
  465. data/lib/Ice/Logger.rb +0 -24
  466. data/lib/Ice/LoggerF.rb +0 -24
  467. data/lib/Ice/Metrics.rb +0 -337
  468. data/lib/Ice/ObjectAdapter.rb +0 -29
  469. data/lib/Ice/ObjectAdapterF.rb +0 -24
  470. data/lib/Ice/ObjectFactory.rb +0 -24
  471. data/lib/Ice/Plugin.rb +0 -30
  472. data/lib/Ice/PluginF.rb +0 -28
  473. data/lib/Ice/Process.rb +0 -53
  474. data/lib/Ice/ProcessF.rb +0 -25
  475. data/lib/Ice/Properties.rb +0 -25
  476. data/lib/Ice/PropertiesAdmin.rb +0 -63
  477. data/lib/Ice/PropertiesF.rb +0 -29
  478. data/lib/Ice/RemoteLogger.rb +0 -207
  479. data/lib/Ice/Router.rb +0 -87
  480. data/lib/Ice/RouterF.rb +0 -25
  481. data/lib/Ice/ServantLocator.rb +0 -26
  482. data/lib/Ice/ServantLocatorF.rb +0 -24
  483. data/lib/Ice/SliceChecksumDict.rb +0 -24
  484. data/lib/Ice/ValueFactory.rb +0 -28
  485. data/lib/Ice/Version.rb +0 -90
  486. data/lib/IceBox/IceBox.rb +0 -164
  487. data/lib/IceGrid/Admin.rb +0 -1196
  488. data/lib/IceGrid/Descriptor.rb +0 -1034
  489. data/lib/IceGrid/Exception.rb +0 -376
  490. data/lib/IceGrid/FileParser.rb +0 -65
  491. data/lib/IceGrid/PluginFacade.rb +0 -35
  492. data/lib/IceGrid/Registry.rb +0 -209
  493. data/lib/IceGrid/Session.rb +0 -71
  494. data/lib/IceGrid/UserAccountMapper.rb +0 -61
  495. data/lib/IcePatch2/FileInfo.rb +0 -115
  496. data/lib/IcePatch2/FileServer.rb +0 -123
  497. data/lib/IceStorm/IceStorm.rb +0 -332
  498. data/lib/IceStorm/Metrics.rb +0 -73
  499. data/slice/Ice/Connection.ice +0 -516
  500. data/slice/Ice/Locator.ice +0 -239
  501. data/slice/Ice/Metrics.ice +0 -436
  502. data/slice/Ice/ObjectAdapter.ice +0 -710
  503. data/slice/Ice/Router.ice +0 -103
  504. data/slice/IceBT/ConnectionInfo.ice +0 -59
  505. data/slice/IceBT/EndpointInfo.ice +0 -57
  506. data/slice/IceBT/Types.ice +0 -45
  507. data/slice/IceDiscovery/IceDiscovery.ice +0 -98
  508. data/slice/IceGrid/PluginFacade.ice +0 -329
  509. data/slice/IceIAP/ConnectionInfo.ice +0 -74
  510. data/slice/IceIAP/EndpointInfo.ice +0 -68
  511. data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +0 -83
  512. data/slice/IceSSL/ConnectionInfo.ice +0 -54
  513. data/slice/IceSSL/ConnectionInfoF.ice +0 -31
  514. data/slice/IceSSL/EndpointInfo.ice +0 -45
  515. data/slice/IceStorm/IceStorm.ice +0 -414
  516. /data/{ext → dist/IceRuby}/Communicator.h +0 -0
  517. /data/{ext → dist/IceRuby}/Config.h +0 -0
  518. /data/{ext → dist/IceRuby}/Connection.h +0 -0
  519. /data/{ext → dist/IceRuby}/Endpoint.h +0 -0
  520. /data/{ext → dist/IceRuby}/ImplicitContext.h +0 -0
  521. /data/{ext → dist/IceRuby}/Init.cpp +0 -0
  522. /data/{ext → dist/IceRuby}/Logger.h +0 -0
  523. /data/{ext → dist/IceRuby}/Operation.h +0 -0
  524. /data/{ext → dist/IceRuby}/Properties.h +0 -0
  525. /data/{ext → dist/IceRuby}/Proxy.cpp +0 -0
  526. /data/{ext → dist/IceRuby}/Proxy.h +0 -0
  527. /data/{ext → dist/IceRuby}/Slice.cpp +0 -0
  528. /data/{ext → dist/IceRuby}/Slice.h +0 -0
  529. /data/{ext → dist/IceRuby}/Util.cpp +0 -0
  530. /data/{ext → dist/IceRuby}/Util.h +0 -0
  531. /data/{ext → dist/IceRuby}/ValueFactoryManager.h +0 -0
  532. /data/{ext → dist}/ice/cpp/include/Ice/Application.h +0 -0
  533. /data/{ext → dist}/ice/cpp/include/Ice/AsyncResult.h +0 -0
  534. /data/{ext → dist}/ice/cpp/include/Ice/AsyncResultF.h +0 -0
  535. /data/{ext → dist}/ice/cpp/include/Ice/BatchRequestInterceptor.h +0 -0
  536. /data/{ext → dist}/ice/cpp/include/Ice/BatchRequestQueueF.h +0 -0
  537. /data/{ext → dist}/ice/cpp/include/Ice/Buffer.h +0 -0
  538. /data/{ext → dist}/ice/cpp/include/Ice/CommunicatorAsync.h +0 -0
  539. /data/{ext → dist}/ice/cpp/include/Ice/Comparable.h +0 -0
  540. /data/{ext → dist}/ice/cpp/include/Ice/Config.h +0 -0
  541. /data/{ext → dist}/ice/cpp/include/Ice/ConnectionAsync.h +0 -0
  542. /data/{ext → dist}/ice/cpp/include/Ice/ConnectionIF.h +0 -0
  543. /data/{ext → dist}/ice/cpp/include/Ice/ConsoleUtil.h +0 -0
  544. /data/{ext → dist}/ice/cpp/include/Ice/DefaultValueFactory.h +0 -0
  545. /data/{ext → dist}/ice/cpp/include/Ice/DispatchInterceptor.h +0 -0
  546. /data/{ext → dist}/ice/cpp/include/Ice/Dispatcher.h +0 -0
  547. /data/{ext → dist}/ice/cpp/include/Ice/DynamicLibrary.h +0 -0
  548. /data/{ext → dist}/ice/cpp/include/Ice/DynamicLibraryF.h +0 -0
  549. /data/{ext → dist}/ice/cpp/include/Ice/Exception.h +0 -0
  550. /data/{ext → dist}/ice/cpp/include/Ice/FactoryTable.h +0 -0
  551. /data/{ext → dist}/ice/cpp/include/Ice/FactoryTableInit.h +0 -0
  552. /data/{ext → dist}/ice/cpp/include/Ice/Format.h +0 -0
  553. /data/{ext → dist}/ice/cpp/include/Ice/Functional.h +0 -0
  554. /data/{ext → dist}/ice/cpp/include/Ice/GCObject.h +0 -0
  555. /data/{ext → dist}/ice/cpp/include/Ice/Handle.h +0 -0
  556. /data/{ext → dist}/ice/cpp/include/Ice/Ice.h +0 -0
  557. /data/{ext → dist}/ice/cpp/include/Ice/IconvStringConverter.h +0 -0
  558. /data/{ext → dist}/ice/cpp/include/Ice/Incoming.h +0 -0
  559. /data/{ext → dist}/ice/cpp/include/Ice/IncomingAsync.h +0 -0
  560. /data/{ext → dist}/ice/cpp/include/Ice/IncomingAsyncF.h +0 -0
  561. /data/{ext → dist}/ice/cpp/include/Ice/InstanceF.h +0 -0
  562. /data/{ext → dist}/ice/cpp/include/Ice/InterfaceByValue.h +0 -0
  563. /data/{ext → dist}/ice/cpp/include/Ice/LocalObject.h +0 -0
  564. /data/{ext → dist}/ice/cpp/include/Ice/LocalObjectF.h +0 -0
  565. /data/{ext → dist}/ice/cpp/include/Ice/LoggerUtil.h +0 -0
  566. /data/{ext → dist}/ice/cpp/include/Ice/MetricsAdminI.h +0 -0
  567. /data/{ext → dist}/ice/cpp/include/Ice/MetricsFunctional.h +0 -0
  568. /data/{ext → dist}/ice/cpp/include/Ice/NativePropertiesAdmin.h +0 -0
  569. /data/{ext → dist}/ice/cpp/include/Ice/Object.h +0 -0
  570. /data/{ext → dist}/ice/cpp/include/Ice/ObjectF.h +0 -0
  571. /data/{ext → dist}/ice/cpp/include/Ice/ObserverHelper.h +0 -0
  572. /data/{ext → dist}/ice/cpp/include/Ice/Optional.h +0 -0
  573. /data/{ext → dist}/ice/cpp/include/Ice/OutgoingAsyncF.h +0 -0
  574. /data/{ext → dist}/ice/cpp/include/Ice/OutputStream.h +0 -0
  575. /data/{ext → dist}/ice/cpp/include/Ice/Protocol.h +0 -0
  576. /data/{ext → dist}/ice/cpp/include/Ice/ProxyF.h +0 -0
  577. /data/{ext → dist}/ice/cpp/include/Ice/ProxyFactoryF.h +0 -0
  578. /data/{ext → dist}/ice/cpp/include/Ice/ProxyHandle.h +0 -0
  579. /data/{ext → dist}/ice/cpp/include/Ice/ReferenceF.h +0 -0
  580. /data/{ext → dist}/ice/cpp/include/Ice/RegisterPlugins.h +0 -0
  581. /data/{ext → dist}/ice/cpp/include/Ice/RequestHandlerF.h +0 -0
  582. /data/{ext → dist}/ice/cpp/include/Ice/ResponseHandlerF.h +0 -0
  583. /data/{ext → dist}/ice/cpp/include/Ice/SHA1.h +0 -0
  584. /data/{ext → dist}/ice/cpp/include/Ice/ServantManagerF.h +0 -0
  585. /data/{ext → dist}/ice/cpp/include/Ice/Service.h +0 -0
  586. /data/{ext → dist}/ice/cpp/include/Ice/SliceChecksums.h +0 -0
  587. /data/{ext → dist}/ice/cpp/include/Ice/SlicedData.h +0 -0
  588. /data/{ext → dist}/ice/cpp/include/Ice/SlicedDataF.h +0 -0
  589. /data/{ext → dist}/ice/cpp/include/Ice/StreamHelpers.h +0 -0
  590. /data/{ext → dist}/ice/cpp/include/Ice/StringConverter.h +0 -0
  591. /data/{ext → dist}/ice/cpp/include/Ice/ThreadPoolF.h +0 -0
  592. /data/{ext → dist}/ice/cpp/include/Ice/UUID.h +0 -0
  593. /data/{ext → dist}/ice/cpp/include/Ice/UniquePtr.h +0 -0
  594. /data/{ext → dist}/ice/cpp/include/Ice/UniqueRef.h +0 -0
  595. /data/{ext → dist}/ice/cpp/include/Ice/Value.h +0 -0
  596. /data/{ext → dist}/ice/cpp/include/Ice/ValueF.h +0 -0
  597. /data/{ext → dist}/ice/cpp/include/IceSSL/Config.h +0 -0
  598. /data/{ext → dist}/ice/cpp/include/IceSSL/IceSSL.h +0 -0
  599. /data/{ext → dist}/ice/cpp/include/IceSSL/OpenSSL.h +0 -0
  600. /data/{ext → dist}/ice/cpp/include/IceSSL/Plugin.h +0 -0
  601. /data/{ext → dist}/ice/cpp/include/IceSSL/SChannel.h +0 -0
  602. /data/{ext → dist}/ice/cpp/include/IceSSL/SecureTransport.h +0 -0
  603. /data/{ext → dist}/ice/cpp/include/IceUtil/Atomic.h +0 -0
  604. /data/{ext → dist}/ice/cpp/include/IceUtil/ConsoleUtil.h +0 -0
  605. /data/{ext → dist}/ice/cpp/include/IceUtil/CountDownLatch.h +0 -0
  606. /data/{ext → dist}/ice/cpp/include/IceUtil/DisableWarnings.h +0 -0
  607. /data/{ext → dist}/ice/cpp/include/IceUtil/Exception.h +0 -0
  608. /data/{ext → dist}/ice/cpp/include/IceUtil/FileUtil.h +0 -0
  609. /data/{ext → dist}/ice/cpp/include/IceUtil/Functional.h +0 -0
  610. /data/{ext → dist}/ice/cpp/include/IceUtil/Handle.h +0 -0
  611. /data/{ext → dist}/ice/cpp/include/IceUtil/IceUtil.h +0 -0
  612. /data/{ext → dist}/ice/cpp/include/IceUtil/Iterator.h +0 -0
  613. /data/{ext → dist}/ice/cpp/include/IceUtil/Lock.h +0 -0
  614. /data/{ext → dist}/ice/cpp/include/IceUtil/Monitor.h +0 -0
  615. /data/{ext → dist}/ice/cpp/include/IceUtil/Mutex.h +0 -0
  616. /data/{ext → dist}/ice/cpp/include/IceUtil/MutexProtocol.h +0 -0
  617. /data/{ext → dist}/ice/cpp/include/IceUtil/MutexPtrLock.h +0 -0
  618. /data/{ext → dist}/ice/cpp/include/IceUtil/MutexPtrTryLock.h +0 -0
  619. /data/{ext → dist}/ice/cpp/include/IceUtil/Optional.h +0 -0
  620. /data/{ext → dist}/ice/cpp/include/IceUtil/Options.h +0 -0
  621. /data/{ext → dist}/ice/cpp/include/IceUtil/OutputUtil.h +0 -0
  622. /data/{ext → dist}/ice/cpp/include/IceUtil/PopDisableWarnings.h +0 -0
  623. /data/{ext → dist}/ice/cpp/include/IceUtil/PushDisableWarnings.h +0 -0
  624. /data/{ext → dist}/ice/cpp/include/IceUtil/Random.h +0 -0
  625. /data/{ext → dist}/ice/cpp/include/IceUtil/RecMutex.h +0 -0
  626. /data/{ext → dist}/ice/cpp/include/IceUtil/ScannerConfig.h +0 -0
  627. /data/{ext → dist}/ice/cpp/include/IceUtil/ScopedArray.h +0 -0
  628. /data/{ext → dist}/ice/cpp/include/IceUtil/Shared.h +0 -0
  629. /data/{ext → dist}/ice/cpp/include/IceUtil/StopWatch.h +0 -0
  630. /data/{ext → dist}/ice/cpp/include/IceUtil/StringConverter.h +0 -0
  631. /data/{ext → dist}/ice/cpp/include/IceUtil/StringUtil.h +0 -0
  632. /data/{ext → dist}/ice/cpp/include/IceUtil/Thread.h +0 -0
  633. /data/{ext → dist}/ice/cpp/include/IceUtil/ThreadException.h +0 -0
  634. /data/{ext → dist}/ice/cpp/include/IceUtil/Time.h +0 -0
  635. /data/{ext → dist}/ice/cpp/include/IceUtil/UUID.h +0 -0
  636. /data/{ext → dist}/ice/cpp/include/IceUtil/UndefSysMacros.h +0 -0
  637. /data/{ext → dist}/ice/cpp/src/Ice/ACM.cpp +0 -0
  638. /data/{ext → dist}/ice/cpp/src/Ice/ACM.h +0 -0
  639. /data/{ext → dist}/ice/cpp/src/Ice/ACMF.h +0 -0
  640. /data/{ext → dist}/ice/cpp/src/Ice/Acceptor.cpp +0 -0
  641. /data/{ext → dist}/ice/cpp/src/Ice/Acceptor.h +0 -0
  642. /data/{ext → dist}/ice/cpp/src/Ice/AcceptorF.h +0 -0
  643. /data/{ext → dist}/ice/cpp/src/Ice/ArgVector.cpp +0 -0
  644. /data/{ext → dist}/ice/cpp/src/Ice/ArgVector.h +0 -0
  645. /data/{ext → dist}/ice/cpp/src/Ice/AsyncResult.cpp +0 -0
  646. /data/{ext → dist}/ice/cpp/src/Ice/Base64.cpp +0 -0
  647. /data/{ext → dist}/ice/cpp/src/Ice/Base64.h +0 -0
  648. /data/{ext → dist}/ice/cpp/src/Ice/Buffer.cpp +0 -0
  649. /data/{ext → dist}/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +0 -0
  650. /data/{ext → dist}/ice/cpp/src/Ice/CollocatedRequestHandler.h +0 -0
  651. /data/{ext → dist}/ice/cpp/src/Ice/CommunicatorI.h +0 -0
  652. /data/{ext → dist}/ice/cpp/src/Ice/Cond.cpp +0 -0
  653. /data/{ext → dist}/ice/cpp/src/Ice/ConnectRequestHandler.cpp +0 -0
  654. /data/{ext → dist}/ice/cpp/src/Ice/ConnectRequestHandler.h +0 -0
  655. /data/{ext → dist}/ice/cpp/src/Ice/ConnectRequestHandlerF.h +0 -0
  656. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionFactory.cpp +0 -0
  657. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionFactory.h +0 -0
  658. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionFactoryF.h +0 -0
  659. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionI.h +0 -0
  660. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +0 -0
  661. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionRequestHandler.h +0 -0
  662. /data/{ext → dist}/ice/cpp/src/Ice/Connector.cpp +0 -0
  663. /data/{ext → dist}/ice/cpp/src/Ice/Connector.h +0 -0
  664. /data/{ext → dist}/ice/cpp/src/Ice/ConnectorF.h +0 -0
  665. /data/{ext → dist}/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +0 -0
  666. /data/{ext → dist}/ice/cpp/src/Ice/DefaultsAndOverrides.h +0 -0
  667. /data/{ext → dist}/ice/cpp/src/Ice/DefaultsAndOverridesF.h +0 -0
  668. /data/{ext → dist}/ice/cpp/src/Ice/DispatchInterceptor.cpp +0 -0
  669. /data/{ext → dist}/ice/cpp/src/Ice/DynamicLibrary.cpp +0 -0
  670. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactory.h +0 -0
  671. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactoryF.h +0 -0
  672. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactoryManager.cpp +0 -0
  673. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactoryManager.h +0 -0
  674. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactoryManagerF.h +0 -0
  675. /data/{ext → dist}/ice/cpp/src/Ice/EndpointI.h +0 -0
  676. /data/{ext → dist}/ice/cpp/src/Ice/EndpointIF.h +0 -0
  677. /data/{ext → dist}/ice/cpp/src/Ice/EventHandler.cpp +0 -0
  678. /data/{ext → dist}/ice/cpp/src/Ice/EventHandler.h +0 -0
  679. /data/{ext → dist}/ice/cpp/src/Ice/EventHandlerF.h +0 -0
  680. /data/{ext → dist}/ice/cpp/src/Ice/Exception.cpp +0 -0
  681. /data/{ext → dist}/ice/cpp/src/Ice/FactoryTable.cpp +0 -0
  682. /data/{ext → dist}/ice/cpp/src/Ice/FactoryTableInit.cpp +0 -0
  683. /data/{ext → dist}/ice/cpp/src/Ice/GCObject.cpp +0 -0
  684. /data/{ext → dist}/ice/cpp/src/Ice/HashUtil.h +0 -0
  685. /data/{ext → dist}/ice/cpp/src/Ice/HttpParser.cpp +0 -0
  686. /data/{ext → dist}/ice/cpp/src/Ice/HttpParser.h +0 -0
  687. /data/{ext → dist}/ice/cpp/src/Ice/IPEndpointI.h +0 -0
  688. /data/{ext → dist}/ice/cpp/src/Ice/IPEndpointIF.h +0 -0
  689. /data/{ext → dist}/ice/cpp/src/Ice/IconvStringConverter.cpp +0 -0
  690. /data/{ext → dist}/ice/cpp/src/Ice/ImplicitContextI.cpp +0 -0
  691. /data/{ext → dist}/ice/cpp/src/Ice/ImplicitContextI.h +0 -0
  692. /data/{ext → dist}/ice/cpp/src/Ice/Incoming.cpp +0 -0
  693. /data/{ext → dist}/ice/cpp/src/Ice/IncomingAsync.cpp +0 -0
  694. /data/{ext → dist}/ice/cpp/src/Ice/IncomingRequest.h +0 -0
  695. /data/{ext → dist}/ice/cpp/src/Ice/Initialize.cpp +0 -0
  696. /data/{ext → dist}/ice/cpp/src/Ice/Instance.cpp +0 -0
  697. /data/{ext → dist}/ice/cpp/src/Ice/Instance.h +0 -0
  698. /data/{ext → dist}/ice/cpp/src/Ice/InstrumentationI.cpp +0 -0
  699. /data/{ext → dist}/ice/cpp/src/Ice/InstrumentationI.h +0 -0
  700. /data/{ext → dist}/ice/cpp/src/Ice/LocalObject.cpp +0 -0
  701. /data/{ext → dist}/ice/cpp/src/Ice/LocatorInfo.cpp +0 -0
  702. /data/{ext → dist}/ice/cpp/src/Ice/LocatorInfo.h +0 -0
  703. /data/{ext → dist}/ice/cpp/src/Ice/LocatorInfoF.h +0 -0
  704. /data/{ext → dist}/ice/cpp/src/Ice/LoggerAdminI.cpp +0 -0
  705. /data/{ext → dist}/ice/cpp/src/Ice/LoggerAdminI.h +0 -0
  706. /data/{ext → dist}/ice/cpp/src/Ice/LoggerI.cpp +0 -0
  707. /data/{ext → dist}/ice/cpp/src/Ice/LoggerI.h +0 -0
  708. /data/{ext → dist}/ice/cpp/src/Ice/LoggerUtil.cpp +0 -0
  709. /data/{ext → dist}/ice/cpp/src/Ice/MetricsObserverI.cpp +0 -0
  710. /data/{ext → dist}/ice/cpp/src/Ice/Network.h +0 -0
  711. /data/{ext → dist}/ice/cpp/src/Ice/NetworkF.h +0 -0
  712. /data/{ext → dist}/ice/cpp/src/Ice/NetworkProxy.h +0 -0
  713. /data/{ext → dist}/ice/cpp/src/Ice/NetworkProxyF.h +0 -0
  714. /data/{ext → dist}/ice/cpp/src/Ice/OSLogLoggerI.cpp +0 -0
  715. /data/{ext → dist}/ice/cpp/src/Ice/OSLogLoggerI.h +0 -0
  716. /data/{ext → dist}/ice/cpp/src/Ice/Object.cpp +0 -0
  717. /data/{ext → dist}/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +0 -0
  718. /data/{ext → dist}/ice/cpp/src/Ice/ObjectAdapterFactory.h +0 -0
  719. /data/{ext → dist}/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +0 -0
  720. /data/{ext → dist}/ice/cpp/src/Ice/ObjectAdapterI.h +0 -0
  721. /data/{ext → dist}/ice/cpp/src/Ice/ObserverHelper.cpp +0 -0
  722. /data/{ext → dist}/ice/cpp/src/Ice/OpaqueEndpointI.cpp +0 -0
  723. /data/{ext → dist}/ice/cpp/src/Ice/OpaqueEndpointI.h +0 -0
  724. /data/{ext → dist}/ice/cpp/src/Ice/OutputStream.cpp +0 -0
  725. /data/{ext → dist}/ice/cpp/src/Ice/PluginManagerI.h +0 -0
  726. /data/{ext → dist}/ice/cpp/src/Ice/PropertiesAdminI.cpp +0 -0
  727. /data/{ext → dist}/ice/cpp/src/Ice/PropertiesAdminI.h +0 -0
  728. /data/{ext → dist}/ice/cpp/src/Ice/PropertiesI.cpp +0 -0
  729. /data/{ext → dist}/ice/cpp/src/Ice/PropertiesI.h +0 -0
  730. /data/{ext → dist}/ice/cpp/src/Ice/Protocol.cpp +0 -0
  731. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolInstance.cpp +0 -0
  732. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolInstance.h +0 -0
  733. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolInstanceF.h +0 -0
  734. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +0 -0
  735. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolPluginFacade.h +0 -0
  736. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +0 -0
  737. /data/{ext → dist}/ice/cpp/src/Ice/ProxyFactory.cpp +0 -0
  738. /data/{ext → dist}/ice/cpp/src/Ice/ProxyFactory.h +0 -0
  739. /data/{ext → dist}/ice/cpp/src/Ice/Reference.h +0 -0
  740. /data/{ext → dist}/ice/cpp/src/Ice/ReferenceFactory.h +0 -0
  741. /data/{ext → dist}/ice/cpp/src/Ice/ReferenceFactoryF.h +0 -0
  742. /data/{ext → dist}/ice/cpp/src/Ice/RegisterPluginsInit.cpp +0 -0
  743. /data/{ext → dist}/ice/cpp/src/Ice/RegisterPluginsInit.h +0 -0
  744. /data/{ext → dist}/ice/cpp/src/Ice/ReplyStatus.h +0 -0
  745. /data/{ext → dist}/ice/cpp/src/Ice/RequestHandler.cpp +0 -0
  746. /data/{ext → dist}/ice/cpp/src/Ice/RequestHandler.h +0 -0
  747. /data/{ext → dist}/ice/cpp/src/Ice/RequestHandlerFactory.cpp +0 -0
  748. /data/{ext → dist}/ice/cpp/src/Ice/RequestHandlerFactory.h +0 -0
  749. /data/{ext → dist}/ice/cpp/src/Ice/ResponseHandler.cpp +0 -0
  750. /data/{ext → dist}/ice/cpp/src/Ice/ResponseHandler.h +0 -0
  751. /data/{ext → dist}/ice/cpp/src/Ice/RetryQueue.cpp +0 -0
  752. /data/{ext → dist}/ice/cpp/src/Ice/RetryQueue.h +0 -0
  753. /data/{ext → dist}/ice/cpp/src/Ice/RetryQueueF.h +0 -0
  754. /data/{ext → dist}/ice/cpp/src/Ice/RouterInfo.cpp +0 -0
  755. /data/{ext → dist}/ice/cpp/src/Ice/RouterInfo.h +0 -0
  756. /data/{ext → dist}/ice/cpp/src/Ice/RouterInfoF.h +0 -0
  757. /data/{ext → dist}/ice/cpp/src/Ice/SHA1.cpp +0 -0
  758. /data/{ext → dist}/ice/cpp/src/Ice/Selector.h +0 -0
  759. /data/{ext → dist}/ice/cpp/src/Ice/ServantManager.cpp +0 -0
  760. /data/{ext → dist}/ice/cpp/src/Ice/ServantManager.h +0 -0
  761. /data/{ext → dist}/ice/cpp/src/Ice/SharedContext.h +0 -0
  762. /data/{ext → dist}/ice/cpp/src/Ice/SliceChecksums.cpp +0 -0
  763. /data/{ext → dist}/ice/cpp/src/Ice/SlicedData.cpp +0 -0
  764. /data/{ext → dist}/ice/cpp/src/Ice/StreamSocket.cpp +0 -0
  765. /data/{ext → dist}/ice/cpp/src/Ice/StreamSocket.h +0 -0
  766. /data/{ext → dist}/ice/cpp/src/Ice/StringConverterPlugin.cpp +0 -0
  767. /data/{ext → dist}/ice/cpp/src/Ice/StringUtil.h +0 -0
  768. /data/{ext → dist}/ice/cpp/src/Ice/SysLoggerI.cpp +0 -0
  769. /data/{ext → dist}/ice/cpp/src/Ice/SysLoggerI.h +0 -0
  770. /data/{ext → dist}/ice/cpp/src/Ice/SystemdJournalI.cpp +0 -0
  771. /data/{ext → dist}/ice/cpp/src/Ice/SystemdJournalI.h +0 -0
  772. /data/{ext → dist}/ice/cpp/src/Ice/TcpAcceptor.cpp +0 -0
  773. /data/{ext → dist}/ice/cpp/src/Ice/TcpAcceptor.h +0 -0
  774. /data/{ext → dist}/ice/cpp/src/Ice/TcpConnector.cpp +0 -0
  775. /data/{ext → dist}/ice/cpp/src/Ice/TcpConnector.h +0 -0
  776. /data/{ext → dist}/ice/cpp/src/Ice/TcpEndpointI.cpp +0 -0
  777. /data/{ext → dist}/ice/cpp/src/Ice/TcpEndpointI.h +0 -0
  778. /data/{ext → dist}/ice/cpp/src/Ice/TcpTransceiver.cpp +0 -0
  779. /data/{ext → dist}/ice/cpp/src/Ice/TcpTransceiver.h +0 -0
  780. /data/{ext → dist}/ice/cpp/src/Ice/Thread.cpp +0 -0
  781. /data/{ext → dist}/ice/cpp/src/Ice/ThreadPool.h +0 -0
  782. /data/{ext → dist}/ice/cpp/src/Ice/TraceLevels.cpp +0 -0
  783. /data/{ext → dist}/ice/cpp/src/Ice/TraceLevels.h +0 -0
  784. /data/{ext → dist}/ice/cpp/src/Ice/TraceLevelsF.h +0 -0
  785. /data/{ext → dist}/ice/cpp/src/Ice/TraceUtil.cpp +0 -0
  786. /data/{ext → dist}/ice/cpp/src/Ice/TraceUtil.h +0 -0
  787. /data/{ext → dist}/ice/cpp/src/Ice/Transceiver.cpp +0 -0
  788. /data/{ext → dist}/ice/cpp/src/Ice/Transceiver.h +0 -0
  789. /data/{ext → dist}/ice/cpp/src/Ice/TransceiverF.h +0 -0
  790. /data/{ext → dist}/ice/cpp/src/Ice/UdpConnector.cpp +0 -0
  791. /data/{ext → dist}/ice/cpp/src/Ice/UdpConnector.h +0 -0
  792. /data/{ext → dist}/ice/cpp/src/Ice/UdpEndpointI.cpp +0 -0
  793. /data/{ext → dist}/ice/cpp/src/Ice/UdpEndpointI.h +0 -0
  794. /data/{ext → dist}/ice/cpp/src/Ice/UdpTransceiver.h +0 -0
  795. /data/{ext → dist}/ice/cpp/src/Ice/Value.cpp +0 -0
  796. /data/{ext → dist}/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +0 -0
  797. /data/{ext → dist}/ice/cpp/src/Ice/ValueFactoryManagerI.h +0 -0
  798. /data/{ext → dist}/ice/cpp/src/Ice/VirtualShared.h +0 -0
  799. /data/{ext → dist}/ice/cpp/src/Ice/WSAcceptor.cpp +0 -0
  800. /data/{ext → dist}/ice/cpp/src/Ice/WSAcceptor.h +0 -0
  801. /data/{ext → dist}/ice/cpp/src/Ice/WSConnector.cpp +0 -0
  802. /data/{ext → dist}/ice/cpp/src/Ice/WSConnector.h +0 -0
  803. /data/{ext → dist}/ice/cpp/src/Ice/WSEndpoint.cpp +0 -0
  804. /data/{ext → dist}/ice/cpp/src/Ice/WSEndpoint.h +0 -0
  805. /data/{ext → dist}/ice/cpp/src/Ice/WSTransceiver.h +0 -0
  806. /data/{ext → dist}/ice/cpp/src/IceDiscovery/LocatorI.cpp +0 -0
  807. /data/{ext → dist}/ice/cpp/src/IceDiscovery/LocatorI.h +0 -0
  808. /data/{ext → dist}/ice/cpp/src/IceDiscovery/LookupI.cpp +0 -0
  809. /data/{ext → dist}/ice/cpp/src/IceDiscovery/LookupI.h +0 -0
  810. /data/{ext → dist}/ice/cpp/src/IceDiscovery/PluginI.cpp +0 -0
  811. /data/{ext → dist}/ice/cpp/src/IceDiscovery/PluginI.h +0 -0
  812. /data/{ext → dist}/ice/cpp/src/IceLocatorDiscovery/Plugin.h +0 -0
  813. /data/{ext → dist}/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +0 -0
  814. /data/{ext → dist}/ice/cpp/src/IceSSL/AcceptorI.cpp +0 -0
  815. /data/{ext → dist}/ice/cpp/src/IceSSL/AcceptorI.h +0 -0
  816. /data/{ext → dist}/ice/cpp/src/IceSSL/CertificateI.cpp +0 -0
  817. /data/{ext → dist}/ice/cpp/src/IceSSL/CertificateI.h +0 -0
  818. /data/{ext → dist}/ice/cpp/src/IceSSL/ConnectorI.cpp +0 -0
  819. /data/{ext → dist}/ice/cpp/src/IceSSL/ConnectorI.h +0 -0
  820. /data/{ext → dist}/ice/cpp/src/IceSSL/EndpointI.cpp +0 -0
  821. /data/{ext → dist}/ice/cpp/src/IceSSL/EndpointI.h +0 -0
  822. /data/{ext → dist}/ice/cpp/src/IceSSL/Instance.cpp +0 -0
  823. /data/{ext → dist}/ice/cpp/src/IceSSL/Instance.h +0 -0
  824. /data/{ext → dist}/ice/cpp/src/IceSSL/InstanceF.h +0 -0
  825. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +0 -0
  826. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLEngine.h +0 -0
  827. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLEngineF.h +0 -0
  828. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +0 -0
  829. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +0 -0
  830. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLUtil.h +0 -0
  831. /data/{ext → dist}/ice/cpp/src/IceSSL/PluginI.h +0 -0
  832. /data/{ext → dist}/ice/cpp/src/IceSSL/RFC2253.h +0 -0
  833. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +0 -0
  834. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelEngine.h +0 -0
  835. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelEngineF.h +0 -0
  836. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelPluginI.cpp +0 -0
  837. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelTransceiverI.h +0 -0
  838. /data/{ext → dist}/ice/cpp/src/IceSSL/SSLEngine.h +0 -0
  839. /data/{ext → dist}/ice/cpp/src/IceSSL/SSLEngineF.h +0 -0
  840. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +0 -0
  841. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportEngineF.h +0 -0
  842. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +0 -0
  843. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +0 -0
  844. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportUtil.h +0 -0
  845. /data/{ext → dist}/ice/cpp/src/IceSSL/TrustManager.h +0 -0
  846. /data/{ext → dist}/ice/cpp/src/IceSSL/TrustManagerF.h +0 -0
  847. /data/{ext → dist}/ice/cpp/src/IceSSL/Util.cpp +0 -0
  848. /data/{ext → dist}/ice/cpp/src/IceSSL/Util.h +0 -0
  849. /data/{ext → dist}/ice/cpp/src/IceUtil/ConsoleUtil.cpp +0 -0
  850. /data/{ext → dist}/ice/cpp/src/IceUtil/ConvertUTF.h +0 -0
  851. /data/{ext → dist}/ice/cpp/src/IceUtil/CtrlCHandler.cpp +0 -0
  852. /data/{ext → dist}/ice/cpp/src/IceUtil/InputUtil.cpp +0 -0
  853. /data/{ext → dist}/ice/cpp/src/IceUtil/MutexProtocol.cpp +0 -0
  854. /data/{ext → dist}/ice/cpp/src/IceUtil/Options.cpp +0 -0
  855. /data/{ext → dist}/ice/cpp/src/IceUtil/OutputUtil.cpp +0 -0
  856. /data/{ext → dist}/ice/cpp/src/IceUtil/Random.cpp +0 -0
  857. /data/{ext → dist}/ice/cpp/src/IceUtil/RecMutex.cpp +0 -0
  858. /data/{ext → dist}/ice/cpp/src/IceUtil/Shared.cpp +0 -0
  859. /data/{ext → dist}/ice/cpp/src/IceUtil/StringUtil.cpp +0 -0
  860. /data/{ext → dist}/ice/cpp/src/IceUtil/ThreadException.cpp +0 -0
  861. /data/{ext → dist}/ice/cpp/src/IceUtil/UUID.cpp +0 -0
  862. /data/{ext → dist}/ice/cpp/src/IceUtil/Unicode.cpp +0 -0
  863. /data/{ext → dist}/ice/cpp/src/IceUtil/Unicode.h +0 -0
  864. /data/{ext → dist}/ice/cpp/src/IceUtil/UtilException.cpp +0 -0
  865. /data/{ext → dist}/ice/cpp/src/Slice/CPlusPlusUtil.cpp +0 -0
  866. /data/{ext → dist}/ice/cpp/src/Slice/CPlusPlusUtil.h +0 -0
  867. /data/{ext → dist}/ice/cpp/src/Slice/Checksum.cpp +0 -0
  868. /data/{ext → dist}/ice/cpp/src/Slice/Checksum.h +0 -0
  869. /data/{ext → dist}/ice/cpp/src/Slice/FileTracker.cpp +0 -0
  870. /data/{ext → dist}/ice/cpp/src/Slice/FileTracker.h +0 -0
  871. /data/{ext → dist}/ice/cpp/src/Slice/Grammar.cpp +0 -0
  872. /data/{ext → dist}/ice/cpp/src/Slice/Grammar.h +0 -0
  873. /data/{ext → dist}/ice/cpp/src/Slice/GrammarUtil.h +0 -0
  874. /data/{ext → dist}/ice/cpp/src/Slice/JavaUtil.h +0 -0
  875. /data/{ext → dist}/ice/cpp/src/Slice/MD5.cpp +0 -0
  876. /data/{ext → dist}/ice/cpp/src/Slice/MD5.h +0 -0
  877. /data/{ext → dist}/ice/cpp/src/Slice/MD5I.cpp +0 -0
  878. /data/{ext → dist}/ice/cpp/src/Slice/MD5I.h +0 -0
  879. /data/{ext → dist}/ice/cpp/src/Slice/PHPUtil.cpp +0 -0
  880. /data/{ext → dist}/ice/cpp/src/Slice/PHPUtil.h +0 -0
  881. /data/{ext → dist}/ice/cpp/src/Slice/Parser.cpp +0 -0
  882. /data/{ext → dist}/ice/cpp/src/Slice/Parser.h +0 -0
  883. /data/{ext → dist}/ice/cpp/src/Slice/Preprocessor.cpp +0 -0
  884. /data/{ext → dist}/ice/cpp/src/Slice/Preprocessor.h +0 -0
  885. /data/{ext → dist}/ice/cpp/src/Slice/Python.cpp +0 -0
  886. /data/{ext → dist}/ice/cpp/src/Slice/PythonUtil.cpp +0 -0
  887. /data/{ext → dist}/ice/cpp/src/Slice/PythonUtil.h +0 -0
  888. /data/{ext → dist}/ice/cpp/src/Slice/Ruby.cpp +0 -0
  889. /data/{ext → dist}/ice/cpp/src/Slice/RubyUtil.cpp +0 -0
  890. /data/{ext → dist}/ice/cpp/src/Slice/RubyUtil.h +0 -0
  891. /data/{ext → dist}/ice/cpp/src/Slice/Scanner.cpp +0 -0
  892. /data/{ext → dist}/ice/cpp/src/Slice/SliceUtil.cpp +0 -0
  893. /data/{ext → dist}/ice/cpp/src/Slice/StringLiteralUtil.cpp +0 -0
  894. /data/{ext → dist}/ice/cpp/src/Slice/Util.h +0 -0
  895. /data/{ext → dist}/ice/mcpp/config.h +0 -0
  896. /data/{ext → dist}/ice/mcpp/configed.H +0 -0
  897. /data/{ext → dist}/ice/mcpp/eval.c +0 -0
  898. /data/{ext → dist}/ice/mcpp/expand.c +0 -0
  899. /data/{ext → dist}/ice/mcpp/mbchar.c +0 -0
  900. /data/{ext → dist}/ice/mcpp/mcpp_lib.h +0 -0
  901. /data/{ext → dist}/ice/mcpp/mcpp_out.h +0 -0
  902. /data/{ext → dist}/ice/mcpp/system.H +0 -0
  903. /data/{slice → dist/ice/slice}/Glacier2/Metrics.ice +0 -0
  904. /data/{slice → dist/ice/slice}/Glacier2/PermissionsVerifier.ice +0 -0
  905. /data/{slice → dist/ice/slice}/Glacier2/PermissionsVerifierF.ice +0 -0
  906. /data/{slice → dist/ice/slice}/Glacier2/Router.ice +0 -0
  907. /data/{slice → dist/ice/slice}/Glacier2/RouterF.ice +0 -0
  908. /data/{slice → dist/ice/slice}/Glacier2/SSLInfo.ice +0 -0
  909. /data/{slice → dist/ice/slice}/Glacier2/Session.ice +0 -0
  910. /data/{slice → dist/ice/slice}/Ice/BuiltinSequences.ice +0 -0
  911. /data/{slice → dist/ice/slice}/Ice/Communicator.ice +0 -0
  912. /data/{slice → dist/ice/slice}/Ice/CommunicatorF.ice +0 -0
  913. /data/{slice → dist/ice/slice}/Ice/ConnectionF.ice +0 -0
  914. /data/{slice → dist/ice/slice}/Ice/Current.ice +0 -0
  915. /data/{slice → dist/ice/slice}/Ice/Endpoint.ice +0 -0
  916. /data/{slice → dist/ice/slice}/Ice/EndpointF.ice +0 -0
  917. /data/{slice → dist/ice/slice}/Ice/EndpointTypes.ice +0 -0
  918. /data/{slice → dist/ice/slice}/Ice/FacetMap.ice +0 -0
  919. /data/{slice → dist/ice/slice}/Ice/Identity.ice +0 -0
  920. /data/{slice → dist/ice/slice}/Ice/ImplicitContext.ice +0 -0
  921. /data/{slice → dist/ice/slice}/Ice/ImplicitContextF.ice +0 -0
  922. /data/{slice → dist/ice/slice}/Ice/Instrumentation.ice +0 -0
  923. /data/{slice → dist/ice/slice}/Ice/InstrumentationF.ice +0 -0
  924. /data/{slice → dist/ice/slice}/Ice/LocalException.ice +0 -0
  925. /data/{slice → dist/ice/slice}/Ice/LocatorF.ice +0 -0
  926. /data/{slice → dist/ice/slice}/Ice/Logger.ice +0 -0
  927. /data/{slice → dist/ice/slice}/Ice/LoggerF.ice +0 -0
  928. /data/{slice → dist/ice/slice}/Ice/ObjectAdapterF.ice +0 -0
  929. /data/{slice → dist/ice/slice}/Ice/ObjectFactory.ice +0 -0
  930. /data/{slice → dist/ice/slice}/Ice/Plugin.ice +0 -0
  931. /data/{slice → dist/ice/slice}/Ice/PluginF.ice +0 -0
  932. /data/{slice → dist/ice/slice}/Ice/Process.ice +0 -0
  933. /data/{slice → dist/ice/slice}/Ice/ProcessF.ice +0 -0
  934. /data/{slice → dist/ice/slice}/Ice/Properties.ice +0 -0
  935. /data/{slice → dist/ice/slice}/Ice/PropertiesAdmin.ice +0 -0
  936. /data/{slice → dist/ice/slice}/Ice/PropertiesF.ice +0 -0
  937. /data/{slice → dist/ice/slice}/Ice/RemoteLogger.ice +0 -0
  938. /data/{slice → dist/ice/slice}/Ice/RouterF.ice +0 -0
  939. /data/{slice → dist/ice/slice}/Ice/ServantLocator.ice +0 -0
  940. /data/{slice → dist/ice/slice}/Ice/ServantLocatorF.ice +0 -0
  941. /data/{slice → dist/ice/slice}/Ice/SliceChecksumDict.ice +0 -0
  942. /data/{slice → dist/ice/slice}/Ice/ValueFactory.ice +0 -0
  943. /data/{slice → dist/ice/slice}/Ice/Version.ice +0 -0
  944. /data/{slice → dist/ice/slice}/IceBox/IceBox.ice +0 -0
  945. /data/{slice → dist/ice/slice}/IceGrid/Admin.ice +0 -0
  946. /data/{slice → dist/ice/slice}/IceGrid/Descriptor.ice +0 -0
  947. /data/{slice → dist/ice/slice}/IceGrid/Exception.ice +0 -0
  948. /data/{slice → dist/ice/slice}/IceGrid/FileParser.ice +0 -0
  949. /data/{slice → dist/ice/slice}/IceGrid/Registry.ice +0 -0
  950. /data/{slice → dist/ice/slice}/IceGrid/Session.ice +0 -0
  951. /data/{slice → dist/ice/slice}/IceGrid/UserAccountMapper.ice +0 -0
  952. /data/{slice → dist/ice/slice}/IcePatch2/FileInfo.ice +0 -0
  953. /data/{slice → dist/ice/slice}/IcePatch2/FileServer.ice +0 -0
  954. /data/{slice → dist/ice/slice}/IceStorm/Metrics.ice +0 -0
  955. /data/{lib → dist/lib}/Glacier2.rb +0 -0
  956. /data/{lib → dist/lib}/Ice.rb +0 -0
  957. /data/{lib → dist/lib}/IceBox.rb +0 -0
  958. /data/{lib → dist/lib}/IceGrid.rb +0 -0
  959. /data/{lib → dist/lib}/IcePatch2.rb +0 -0
  960. /data/{lib → dist/lib}/IceStorm.rb +0 -0
  961. /data/{bin → scripts}/slice2rb +0 -0
@@ -0,0 +1,2758 @@
1
+ //
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
3
+ //
4
+
5
+ #include <IceUtil/DisableWarnings.h>
6
+ #include <Ice/InputStream.h>
7
+ #include <Ice/DefaultsAndOverrides.h>
8
+ #include <Ice/Instance.h>
9
+ #include <Ice/Object.h>
10
+ #include <Ice/Proxy.h>
11
+ #include <Ice/ProxyFactory.h>
12
+ #include <Ice/ValueFactory.h>
13
+ #include <Ice/UserExceptionFactory.h>
14
+ #include <Ice/LocalException.h>
15
+ #include <Ice/Protocol.h>
16
+ #include <Ice/FactoryTableInit.h>
17
+ #include <Ice/TraceUtil.h>
18
+ #include <Ice/TraceLevels.h>
19
+ #include <Ice/LoggerUtil.h>
20
+ #include <Ice/SlicedData.h>
21
+ #include <Ice/StringConverter.h>
22
+ #include <iterator>
23
+ #include <climits>
24
+
25
+ #ifndef ICE_UNALIGNED
26
+ # if defined(__i386) || defined(_M_IX86) || defined(__x86_64) || defined(_M_X64)
27
+ # define ICE_UNALIGNED
28
+ # endif
29
+ #endif
30
+
31
+ using namespace std;
32
+ using namespace Ice;
33
+ using namespace IceInternal;
34
+
35
+ Ice::InputStream::InputStream()
36
+ {
37
+ initialize(currentEncoding);
38
+ }
39
+
40
+ Ice::InputStream::InputStream(const vector<Byte>& v) :
41
+ Buffer(v)
42
+ {
43
+ initialize(currentEncoding);
44
+ }
45
+
46
+ Ice::InputStream::InputStream(const pair<const Byte*, const Byte*>& p) :
47
+ Buffer(p.first, p.second)
48
+ {
49
+ initialize(currentEncoding);
50
+ }
51
+
52
+ Ice::InputStream::InputStream(Buffer& buf, bool adopt) :
53
+ Buffer(buf, adopt)
54
+ {
55
+ initialize(currentEncoding);
56
+ }
57
+
58
+ Ice::InputStream::InputStream(const CommunicatorPtr& communicator)
59
+ {
60
+ initialize(communicator);
61
+ }
62
+
63
+ Ice::InputStream::InputStream(const CommunicatorPtr& communicator, const vector<Byte>& v) :
64
+ Buffer(v)
65
+ {
66
+ initialize(communicator);
67
+ }
68
+
69
+ Ice::InputStream::InputStream(const CommunicatorPtr& communicator, const pair<const Byte*, const Byte*>& p) :
70
+ Buffer(p.first, p.second)
71
+ {
72
+ initialize(communicator);
73
+ }
74
+
75
+ Ice::InputStream::InputStream(const CommunicatorPtr& communicator, Buffer& buf, bool adopt) :
76
+ Buffer(buf, adopt)
77
+ {
78
+ initialize(communicator);
79
+ }
80
+
81
+ Ice::InputStream::InputStream(const EncodingVersion& encoding)
82
+ {
83
+ initialize(encoding);
84
+ }
85
+
86
+ Ice::InputStream::InputStream(const EncodingVersion& encoding, const vector<Byte>& v) :
87
+ Buffer(v)
88
+ {
89
+ initialize(encoding);
90
+ }
91
+
92
+ Ice::InputStream::InputStream(const EncodingVersion& encoding, const pair<const Byte*, const Byte*>& p) :
93
+ Buffer(p.first, p.second)
94
+ {
95
+ initialize(encoding);
96
+ }
97
+
98
+ Ice::InputStream::InputStream(const EncodingVersion& encoding, Buffer& buf, bool adopt) :
99
+ Buffer(buf, adopt)
100
+ {
101
+ initialize(encoding);
102
+ }
103
+
104
+ Ice::InputStream::InputStream(const CommunicatorPtr& communicator, const EncodingVersion& encoding)
105
+ {
106
+ initialize(communicator, encoding);
107
+ }
108
+
109
+ Ice::InputStream::InputStream(const CommunicatorPtr& communicator, const EncodingVersion& encoding,
110
+ const vector<Byte>& v) :
111
+ Buffer(v)
112
+ {
113
+ initialize(communicator, encoding);
114
+ }
115
+
116
+ Ice::InputStream::InputStream(const CommunicatorPtr& communicator, const EncodingVersion& encoding,
117
+ const pair<const Byte*, const Byte*>& p) :
118
+ Buffer(p.first, p.second)
119
+ {
120
+ initialize(communicator, encoding);
121
+ }
122
+
123
+ Ice::InputStream::InputStream(const CommunicatorPtr& communicator, const EncodingVersion& encoding,
124
+ Buffer& buf, bool adopt) :
125
+ Buffer(buf, adopt)
126
+ {
127
+ initialize(communicator, encoding);
128
+ }
129
+
130
+ Ice::InputStream::InputStream(Instance* instance, const EncodingVersion& encoding)
131
+ {
132
+ initialize(instance, encoding);
133
+ }
134
+
135
+ Ice::InputStream::InputStream(Instance* instance, const EncodingVersion& encoding, Buffer& buf, bool adopt) :
136
+ Buffer(buf, adopt)
137
+ {
138
+ initialize(instance, encoding);
139
+ }
140
+
141
+ void
142
+ Ice::InputStream::initialize(const CommunicatorPtr& communicator)
143
+ {
144
+ Instance* instance = getInstance(communicator).get();
145
+ initialize(instance, instance->defaultsAndOverrides()->defaultEncoding);
146
+ }
147
+
148
+ void
149
+ Ice::InputStream::initialize(const CommunicatorPtr& communicator, const EncodingVersion& encoding)
150
+ {
151
+ initialize(getInstance(communicator).get(), encoding);
152
+ }
153
+
154
+ void
155
+ Ice::InputStream::initialize(Instance* instance, const EncodingVersion& encoding)
156
+ {
157
+ initialize(encoding);
158
+
159
+ _instance = instance;
160
+
161
+ #ifndef ICE_CPP11_MAPPING
162
+ _collectObjects = _instance->collectObjects();
163
+ #endif
164
+ _traceSlicing = _instance->traceLevels()->slicing > 0;
165
+ _classGraphDepthMax = _instance->classGraphDepthMax();
166
+ }
167
+
168
+ void
169
+ Ice::InputStream::initialize(const EncodingVersion& encoding)
170
+ {
171
+ _instance = 0;
172
+ _encoding = encoding;
173
+ _currentEncaps = 0;
174
+ #ifndef ICE_CPP11_MAPPING
175
+ _collectObjects = false;
176
+ #endif
177
+ _traceSlicing = false;
178
+ _classGraphDepthMax = 0x7fffffff;
179
+ _closure = 0;
180
+ _sliceValues = true;
181
+ _startSeq = -1;
182
+ _minSeqSize = 0;
183
+ }
184
+
185
+ void
186
+ Ice::InputStream::clear()
187
+ {
188
+ while(_currentEncaps && _currentEncaps != &_preAllocatedEncaps)
189
+ {
190
+ Encaps* oldEncaps = _currentEncaps;
191
+ _currentEncaps = _currentEncaps->previous;
192
+ delete oldEncaps;
193
+ }
194
+
195
+ _startSeq = -1;
196
+ _sliceValues = true;
197
+ }
198
+
199
+ void
200
+ Ice::InputStream::setValueFactoryManager(const ValueFactoryManagerPtr& vfm)
201
+ {
202
+ _valueFactoryManager = vfm;
203
+ }
204
+
205
+ void
206
+ Ice::InputStream::setLogger(const LoggerPtr& logger)
207
+ {
208
+ _logger = logger;
209
+ }
210
+
211
+ void
212
+ #ifdef ICE_CPP11_MAPPING
213
+ Ice::InputStream::setCompactIdResolver(std::function<std::string(int)> r)
214
+ #else
215
+ Ice::InputStream::setCompactIdResolver(const CompactIdResolverPtr& r)
216
+ #endif
217
+ {
218
+ _compactIdResolver = r;
219
+ }
220
+
221
+ #ifndef ICE_CPP11_MAPPING
222
+ void
223
+ Ice::InputStream::setCollectObjects(bool on)
224
+ {
225
+ _collectObjects = on;
226
+ }
227
+ #endif
228
+
229
+ void
230
+ Ice::InputStream::setSliceValues(bool on)
231
+ {
232
+ _sliceValues = on;
233
+ }
234
+
235
+ void
236
+ Ice::InputStream::setTraceSlicing(bool on)
237
+ {
238
+ _traceSlicing = on;
239
+ }
240
+
241
+ void
242
+ Ice::InputStream::setClassGraphDepthMax(size_t classGraphDepthMax)
243
+ {
244
+ if(classGraphDepthMax < 1)
245
+ {
246
+ _classGraphDepthMax = 0x7fffffff;
247
+ }
248
+ else
249
+ {
250
+ _classGraphDepthMax = classGraphDepthMax;
251
+ }
252
+ }
253
+
254
+ void*
255
+ Ice::InputStream::getClosure() const
256
+ {
257
+ return _closure;
258
+ }
259
+
260
+ void*
261
+ Ice::InputStream::setClosure(void* p)
262
+ {
263
+ void* prev = _closure;
264
+ _closure = p;
265
+ return prev;
266
+ }
267
+
268
+ void
269
+ Ice::InputStream::swap(InputStream& other)
270
+ {
271
+ swapBuffer(other);
272
+
273
+ std::swap(_instance, other._instance);
274
+ std::swap(_encoding, other._encoding);
275
+ #ifndef ICE_CPP11_MAPPING
276
+ std::swap(_collectObjects, other._collectObjects);
277
+ #endif
278
+ std::swap(_traceSlicing, other._traceSlicing);
279
+ std::swap(_classGraphDepthMax, other._classGraphDepthMax);
280
+ std::swap(_closure, other._closure);
281
+ std::swap(_sliceValues, other._sliceValues);
282
+
283
+ //
284
+ // Swap is never called for streams that have encapsulations being read. However,
285
+ // encapsulations might still be set in case unmarshaling failed. We just
286
+ // reset the encapsulations if there are still some set.
287
+ //
288
+ resetEncapsulation();
289
+ other.resetEncapsulation();
290
+
291
+ std::swap(_startSeq, other._startSeq);
292
+ std::swap(_minSeqSize, other._minSeqSize);
293
+
294
+ std::swap(_valueFactoryManager, other._valueFactoryManager);
295
+ std::swap(_logger, other._logger);
296
+ std::swap(_compactIdResolver, other._compactIdResolver);
297
+ }
298
+
299
+ void
300
+ Ice::InputStream::resetEncapsulation()
301
+ {
302
+ while(_currentEncaps && _currentEncaps != &_preAllocatedEncaps)
303
+ {
304
+ Encaps* oldEncaps = _currentEncaps;
305
+ _currentEncaps = _currentEncaps->previous;
306
+ delete oldEncaps;
307
+ }
308
+
309
+ _preAllocatedEncaps.reset();
310
+ }
311
+
312
+ Int
313
+ Ice::InputStream::getEncapsulationSize()
314
+ {
315
+ assert(_currentEncaps);
316
+ return _currentEncaps->sz - static_cast<Int>(sizeof(Int)) - 2;
317
+ }
318
+
319
+ EncodingVersion
320
+ Ice::InputStream::skipEncapsulation()
321
+ {
322
+ Int sz;
323
+ read(sz);
324
+ if(sz < 6)
325
+ {
326
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
327
+ }
328
+ // sz includes the 4 bytes of the size itself, which we have already read.
329
+ if(sz - 4 > b.end() - i)
330
+ {
331
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
332
+ }
333
+ EncodingVersion encoding;
334
+ read(encoding.major);
335
+ read(encoding.minor);
336
+ i += static_cast<size_t>(sz) - sizeof(Int) - 2;
337
+ return encoding;
338
+ }
339
+
340
+ void
341
+ Ice::InputStream::readPendingValues()
342
+ {
343
+ if(_currentEncaps && _currentEncaps->decoder)
344
+ {
345
+ _currentEncaps->decoder->readPendingValues();
346
+ }
347
+ else if(getEncoding() == Ice::Encoding_1_0)
348
+ {
349
+ //
350
+ // If using the 1.0 encoding and no instances were read, we
351
+ // still read an empty sequence of pending instances if
352
+ // requested (i.e.: if this is called).
353
+ //
354
+ // This is required by the 1.0 encoding, even if no instances
355
+ // are written we do marshal an empty sequence if marshaled
356
+ // data types use classes.
357
+ //
358
+ skipSize();
359
+ }
360
+ }
361
+
362
+ Int
363
+ Ice::InputStream::readAndCheckSeqSize(int minSize)
364
+ {
365
+ Int sz = readSize();
366
+
367
+ if(sz == 0)
368
+ {
369
+ return sz;
370
+ }
371
+
372
+ //
373
+ // The _startSeq variable points to the start of the sequence for which
374
+ // we expect to read at least _minSeqSize bytes from the stream.
375
+ //
376
+ // If not initialized or if we already read more data than _minSeqSize,
377
+ // we reset _startSeq and _minSeqSize for this sequence (possibly a
378
+ // top-level sequence or enclosed sequence it doesn't really matter).
379
+ //
380
+ // Otherwise, we are reading an enclosed sequence and we have to bump
381
+ // _minSeqSize by the minimum size that this sequence will require on
382
+ // the stream.
383
+ //
384
+ // The goal of this check is to ensure that when we start un-marshalling
385
+ // a new sequence, we check the minimal size of this new sequence against
386
+ // the estimated remaining buffer size. This estimation is based on
387
+ // the minimum size of the enclosing sequences, it's _minSeqSize.
388
+ //
389
+ // 'sz' is peer-controlled (up to INT32_MAX), so we compute the minimum size of this sequence in
390
+ // 64-bit: 'sz * minSize' would otherwise overflow a 32-bit int and bypass the bounds check below.
391
+ Long minSeqSize = static_cast<Long>(sz) * minSize;
392
+
393
+ // '_startSeq + _minSeqSize' does not overflow: on the previous call, the bounds check below
394
+ // established this sum is <= b.size(), itself smaller than INT32_MAX.
395
+ if(_startSeq == -1 || (i - b.begin()) > _startSeq + _minSeqSize)
396
+ {
397
+ _startSeq = static_cast<int>(i - b.begin());
398
+ }
399
+ else
400
+ {
401
+ minSeqSize += _minSeqSize;
402
+ }
403
+
404
+ //
405
+ // If there isn't enough data to read on the stream for the sequence (and
406
+ // possibly enclosed sequences), something is wrong with the marshalled
407
+ // data: it's claiming having more data that what is possible to read.
408
+ //
409
+ if(_startSeq + minSeqSize > static_cast<Long>(b.size()))
410
+ {
411
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
412
+ }
413
+
414
+ // minSeqSize is now known to be <= b.size(), itself smaller than INT32_MAX.
415
+ _minSeqSize = static_cast<int>(minSeqSize);
416
+
417
+ return sz;
418
+ }
419
+
420
+ void
421
+ Ice::InputStream::readBlob(vector<Byte>& v, Int sz)
422
+ {
423
+ if(sz > 0)
424
+ {
425
+ if(b.end() - i < sz)
426
+ {
427
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
428
+ }
429
+ vector<Byte>(i, i + sz).swap(v);
430
+ i += sz;
431
+ }
432
+ else
433
+ {
434
+ v.clear();
435
+ }
436
+ }
437
+
438
+ void
439
+ Ice::InputStream::read(std::vector<Ice::Byte>& v)
440
+ {
441
+ std::pair<const Ice::Byte*, const Ice::Byte*> p;
442
+ read(p);
443
+ if(p.first != p.second)
444
+ {
445
+ v.resize(static_cast<size_t>(p.second - p.first));
446
+ copy(p.first, p.second, v.begin());
447
+ }
448
+ else
449
+ {
450
+ v.clear();
451
+ }
452
+ }
453
+
454
+ void
455
+ Ice::InputStream::read(pair<const Byte*, const Byte*>& v)
456
+ {
457
+ Int sz = readAndCheckSeqSize(1);
458
+ if(sz > 0)
459
+ {
460
+ v.first = i;
461
+ v.second = i + sz;
462
+ i += sz;
463
+ }
464
+ else
465
+ {
466
+ v.first = v.second = i;
467
+ }
468
+ }
469
+
470
+ void
471
+ Ice::InputStream::read(vector<bool>& v)
472
+ {
473
+ Int sz = readAndCheckSeqSize(1);
474
+ if(sz > 0)
475
+ {
476
+ v.resize(static_cast<size_t>(sz));
477
+ copy(i, i + sz, v.begin());
478
+ i += sz;
479
+ }
480
+ else
481
+ {
482
+ v.clear();
483
+ }
484
+ }
485
+
486
+ namespace
487
+ {
488
+
489
+ template<size_t boolSize>
490
+ struct ReadBoolHelper
491
+ {
492
+ static bool* read(pair<const bool*, const bool*>& v, Int sz, InputStream::Container::iterator& i)
493
+ {
494
+ bool* array = new bool[static_cast<size_t>(sz)];
495
+ for(int idx = 0; idx < sz; ++idx)
496
+ {
497
+ array[idx] = static_cast<bool>(*(i + idx));
498
+ }
499
+ v.first = array;
500
+ v.second = array + sz;
501
+ return array;
502
+ }
503
+ };
504
+
505
+ template<>
506
+ struct ReadBoolHelper<1>
507
+ {
508
+ static bool* read(pair<const bool*, const bool*>& v, Int sz, InputStream::Container::iterator& i)
509
+ {
510
+ v.first = reinterpret_cast<bool*>(i);
511
+ v.second = reinterpret_cast<bool*>(i) + sz;
512
+ return 0;
513
+ }
514
+ };
515
+
516
+ }
517
+
518
+ #ifdef ICE_CPP11_MAPPING
519
+ void
520
+ Ice::InputStream::read(pair<const bool*, const bool*>& v)
521
+ {
522
+ Int sz = readAndCheckSeqSize(1);
523
+ if(sz > 0)
524
+ {
525
+ auto boolArray = ReadBoolHelper<sizeof(bool)>::read(v, sz, i);
526
+ if(boolArray)
527
+ {
528
+ _deleters.push_back([boolArray] { delete[] boolArray; });
529
+ }
530
+ i += sz;
531
+ }
532
+ else
533
+ {
534
+ v.first = v.second = reinterpret_cast<bool*>(i);
535
+ }
536
+ }
537
+
538
+ #else
539
+ void
540
+ Ice::InputStream::read(pair<const bool*, const bool*>& v, IceUtil::ScopedArray<bool>& result)
541
+ {
542
+ Int sz = readAndCheckSeqSize(1);
543
+ if(sz > 0)
544
+ {
545
+ result.reset(ReadBoolHelper<sizeof(bool)>::read(v, sz, i));
546
+ i += sz;
547
+ }
548
+ else
549
+ {
550
+ result.reset();
551
+ v.first = v.second = reinterpret_cast<bool*>(i);
552
+ }
553
+ }
554
+ #endif
555
+
556
+ void
557
+ Ice::InputStream::read(Short& v)
558
+ {
559
+ if(b.end() - i < static_cast<int>(sizeof(Short)))
560
+ {
561
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
562
+ }
563
+ const Byte* src = &(*i);
564
+ i += sizeof(Short);
565
+ #ifdef ICE_BIG_ENDIAN
566
+ Byte* dest = reinterpret_cast<Byte*>(&v) + sizeof(Short) - 1;
567
+ *dest-- = *src++;
568
+ *dest = *src;
569
+ #else
570
+ Byte* dest = reinterpret_cast<Byte*>(&v);
571
+ *dest++ = *src++;
572
+ *dest = *src;
573
+ #endif
574
+ }
575
+
576
+ void
577
+ Ice::InputStream::read(vector<Short>& v)
578
+ {
579
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Short)));
580
+ if(sz > 0)
581
+ {
582
+ Container::iterator begin = i;
583
+ i += sz * static_cast<int>(sizeof(Short));
584
+ v.resize(static_cast<size_t>(sz));
585
+ #ifdef ICE_BIG_ENDIAN
586
+ const Byte* src = &(*begin);
587
+ Byte* dest = reinterpret_cast<Byte*>(&v[0]) + sizeof(Short) - 1;
588
+ for(int j = 0 ; j < sz ; ++j)
589
+ {
590
+ *dest-- = *src++;
591
+ *dest-- = *src++;
592
+ dest += 2 * sizeof(Short);
593
+ }
594
+ #else
595
+ copy(begin, i, reinterpret_cast<Byte*>(&v[0]));
596
+ #endif
597
+ }
598
+ else
599
+ {
600
+ v.clear();
601
+ }
602
+ }
603
+
604
+ #ifdef ICE_CPP11_MAPPING
605
+ void
606
+ Ice::InputStream::read(pair<const short*, const short*>& v)
607
+ #else
608
+ void
609
+ Ice::InputStream::read(pair<const Short*, const Short*>& v, IceUtil::ScopedArray<Short>& result)
610
+ #endif
611
+ {
612
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Short)));
613
+ if(sz > 0)
614
+ {
615
+ #ifdef ICE_UNALIGNED
616
+ v.first = reinterpret_cast<Short*>(i);
617
+ i += sz * static_cast<int>(sizeof(Short));
618
+ v.second = reinterpret_cast<Short*>(i);
619
+ #else
620
+ # ifdef ICE_CPP11_MAPPING
621
+ auto result = new short[static_cast<size_t>(sz)];
622
+ _deleters.push_back([result] { delete[] result; });
623
+ v.first = result;
624
+ v.second = result + sz;
625
+ # else
626
+ result.reset(new Short[static_cast<size_t>(sz)]);
627
+ v.first = result.get();
628
+ v.second = result.get() + sz;
629
+ # endif
630
+
631
+ Container::iterator begin = i;
632
+ i += sz * static_cast<int>(sizeof(Short));
633
+ # ifdef ICE_BIG_ENDIAN
634
+ const Byte* src = &(*begin);
635
+ Byte* dest = reinterpret_cast<Byte*>(&result[0]) + sizeof(Short) - 1;
636
+ for(int j = 0 ; j < sz ; ++j)
637
+ {
638
+ *dest-- = *src++;
639
+ *dest-- = *src++;
640
+ dest += 2 * sizeof(Short);
641
+ }
642
+ # else
643
+ copy(begin, i, reinterpret_cast<Byte*>(&result[0]));
644
+ # endif
645
+ #endif
646
+ }
647
+ else
648
+ {
649
+ #ifndef ICE_CPP11_MAPPING
650
+ result.reset();
651
+ #endif
652
+ v.first = v.second = 0;
653
+ }
654
+ }
655
+
656
+ void
657
+ Ice::InputStream::read(vector<Int>& v)
658
+ {
659
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Int)));
660
+ if(sz > 0)
661
+ {
662
+ Container::iterator begin = i;
663
+ i += sz * static_cast<int>(sizeof(Int));
664
+ v.resize(static_cast<size_t>(sz));
665
+ #ifdef ICE_BIG_ENDIAN
666
+ const Byte* src = &(*begin);
667
+ Byte* dest = reinterpret_cast<Byte*>(&v[0]) + sizeof(Int) - 1;
668
+ for(int j = 0 ; j < sz ; ++j)
669
+ {
670
+ *dest-- = *src++;
671
+ *dest-- = *src++;
672
+ *dest-- = *src++;
673
+ *dest-- = *src++;
674
+ dest += 2 * sizeof(Int);
675
+ }
676
+ #else
677
+ copy(begin, i, reinterpret_cast<Byte*>(&v[0]));
678
+ #endif
679
+ }
680
+ else
681
+ {
682
+ v.clear();
683
+ }
684
+ }
685
+
686
+ #ifdef ICE_CPP11_MAPPING
687
+ void
688
+ Ice::InputStream::read(pair<const Int*, const Int*>& v)
689
+ #else
690
+ void
691
+ Ice::InputStream::read(pair<const Int*, const Int*>& v, ::IceUtil::ScopedArray<Int>& result)
692
+ #endif
693
+ {
694
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Int)));
695
+ if(sz > 0)
696
+ {
697
+ #ifdef ICE_UNALIGNED
698
+ v.first = reinterpret_cast<Int*>(i);
699
+ i += sz * static_cast<int>(sizeof(Int));
700
+ v.second = reinterpret_cast<Int*>(i);
701
+ #else
702
+
703
+ # ifdef ICE_CPP11_MAPPING
704
+ auto result = new int[static_cast<size_t>(sz)];
705
+ _deleters.push_back([result] { delete[] result; });
706
+ v.first = result;
707
+ v.second = result + sz;
708
+ # else
709
+ result.reset(new Int[static_cast<size_t>(sz)]);
710
+ v.first = result.get();
711
+ v.second = result.get() + sz;
712
+ # endif
713
+
714
+ Container::iterator begin = i;
715
+ i += sz * static_cast<int>(sizeof(Int));
716
+ # ifdef ICE_BIG_ENDIAN
717
+ const Byte* src = &(*begin);
718
+ Byte* dest = reinterpret_cast<Byte*>(&result[0]) + sizeof(Int) - 1;
719
+ for(int j = 0 ; j < sz ; ++j)
720
+ {
721
+ *dest-- = *src++;
722
+ *dest-- = *src++;
723
+ *dest-- = *src++;
724
+ *dest-- = *src++;
725
+ dest += 2 * sizeof(Int);
726
+ }
727
+ # else
728
+ copy(begin, i, reinterpret_cast<Byte*>(&result[0]));
729
+ # endif
730
+ #endif
731
+ }
732
+ else
733
+ {
734
+ #ifndef ICE_CPP11_MAPPING
735
+ result.reset();
736
+ #endif
737
+ v.first = v.second = 0;
738
+ }
739
+ }
740
+
741
+ void
742
+ Ice::InputStream::read(Long& v)
743
+ {
744
+ if(b.end() - i < static_cast<int>(sizeof(Long)))
745
+ {
746
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
747
+ }
748
+ const Byte* src = &(*i);
749
+ i += sizeof(Long);
750
+ #ifdef ICE_BIG_ENDIAN
751
+ Byte* dest = reinterpret_cast<Byte*>(&v) + sizeof(Long) - 1;
752
+ *dest-- = *src++;
753
+ *dest-- = *src++;
754
+ *dest-- = *src++;
755
+ *dest-- = *src++;
756
+ *dest-- = *src++;
757
+ *dest-- = *src++;
758
+ *dest-- = *src++;
759
+ *dest = *src;
760
+ #else
761
+ Byte* dest = reinterpret_cast<Byte*>(&v);
762
+ *dest++ = *src++;
763
+ *dest++ = *src++;
764
+ *dest++ = *src++;
765
+ *dest++ = *src++;
766
+ *dest++ = *src++;
767
+ *dest++ = *src++;
768
+ *dest++ = *src++;
769
+ *dest = *src;
770
+ #endif
771
+ }
772
+
773
+ void
774
+ Ice::InputStream::read(vector<Long>& v)
775
+ {
776
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Long)));
777
+ if(sz > 0)
778
+ {
779
+ Container::iterator begin = i;
780
+ i += sz * static_cast<int>(sizeof(Long));
781
+ v.resize(static_cast<size_t>(sz));
782
+ #ifdef ICE_BIG_ENDIAN
783
+ const Byte* src = &(*begin);
784
+ Byte* dest = reinterpret_cast<Byte*>(&v[0]) + sizeof(Long) - 1;
785
+ for(int j = 0 ; j < sz ; ++j)
786
+ {
787
+ *dest-- = *src++;
788
+ *dest-- = *src++;
789
+ *dest-- = *src++;
790
+ *dest-- = *src++;
791
+ *dest-- = *src++;
792
+ *dest-- = *src++;
793
+ *dest-- = *src++;
794
+ *dest-- = *src++;
795
+ dest += 2 * sizeof(Long);
796
+ }
797
+ #else
798
+ copy(begin, i, reinterpret_cast<Byte*>(&v[0]));
799
+ #endif
800
+ }
801
+ else
802
+ {
803
+ v.clear();
804
+ }
805
+ }
806
+
807
+ #ifdef ICE_CPP11_MAPPING
808
+ void
809
+ Ice::InputStream::read(pair<const Long*, const Long*>& v)
810
+ #else
811
+ void
812
+ Ice::InputStream::read(pair<const Long*, const Long*>& v, IceUtil::ScopedArray<Long>& result)
813
+ #endif
814
+ {
815
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Long)));
816
+ if(sz > 0)
817
+ {
818
+ #ifdef ICE_UNALIGNED
819
+ v.first = reinterpret_cast<Long*>(i);
820
+ i += sz * static_cast<int>(sizeof(Long));
821
+ v.second = reinterpret_cast<Long*>(i);
822
+ #else
823
+
824
+ # ifdef ICE_CPP11_MAPPING
825
+ auto result = new long long[static_cast<size_t>(sz)];
826
+ _deleters.push_back([result] { delete[] result; });
827
+ v.first = result;
828
+ v.second = result + sz;
829
+ # else
830
+ result.reset(new Long[static_cast<size_t>(sz)]);
831
+ v.first = result.get();
832
+ v.second = result.get() + sz;
833
+ # endif
834
+
835
+ Container::iterator begin = i;
836
+ i += sz * static_cast<int>(sizeof(Long));
837
+ # ifdef ICE_BIG_ENDIAN
838
+ const Byte* src = &(*begin);
839
+ Byte* dest = reinterpret_cast<Byte*>(&result[0]) + sizeof(Long) - 1;
840
+ for(int j = 0 ; j < sz ; ++j)
841
+ {
842
+ *dest-- = *src++;
843
+ *dest-- = *src++;
844
+ *dest-- = *src++;
845
+ *dest-- = *src++;
846
+ *dest-- = *src++;
847
+ *dest-- = *src++;
848
+ *dest-- = *src++;
849
+ *dest-- = *src++;
850
+ dest += 2 * sizeof(Long);
851
+ }
852
+ # else
853
+ copy(begin, i, reinterpret_cast<Byte*>(&result[0]));
854
+ # endif
855
+ #endif
856
+ }
857
+ else
858
+ {
859
+ #ifndef ICE_CPP11_MAPPING
860
+ result.reset();
861
+ #endif
862
+ v.first = v.second = 0;
863
+ }
864
+ }
865
+
866
+ void
867
+ Ice::InputStream::read(Float& v)
868
+ {
869
+ if(b.end() - i < static_cast<int>(sizeof(Float)))
870
+ {
871
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
872
+ }
873
+ const Byte* src = &(*i);
874
+ i += sizeof(Float);
875
+ #ifdef ICE_BIG_ENDIAN
876
+ Byte* dest = reinterpret_cast<Byte*>(&v) + sizeof(Float) - 1;
877
+ *dest-- = *src++;
878
+ *dest-- = *src++;
879
+ *dest-- = *src++;
880
+ *dest = *src;
881
+ #else
882
+ Byte* dest = reinterpret_cast<Byte*>(&v);
883
+ *dest++ = *src++;
884
+ *dest++ = *src++;
885
+ *dest++ = *src++;
886
+ *dest = *src;
887
+ #endif
888
+ }
889
+
890
+ void
891
+ Ice::InputStream::read(vector<Float>& v)
892
+ {
893
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Float)));
894
+ if(sz > 0)
895
+ {
896
+ Container::iterator begin = i;
897
+ i += sz * static_cast<int>(sizeof(Float));
898
+ v.resize(static_cast<size_t>(sz));
899
+ #ifdef ICE_BIG_ENDIAN
900
+ const Byte* src = &(*begin);
901
+ Byte* dest = reinterpret_cast<Byte*>(&v[0]) + sizeof(Float) - 1;
902
+ for(int j = 0 ; j < sz ; ++j)
903
+ {
904
+ *dest-- = *src++;
905
+ *dest-- = *src++;
906
+ *dest-- = *src++;
907
+ *dest-- = *src++;
908
+ dest += 2 * sizeof(Float);
909
+ }
910
+ #else
911
+ copy(begin, i, reinterpret_cast<Byte*>(&v[0]));
912
+ #endif
913
+ }
914
+ else
915
+ {
916
+ v.clear();
917
+ }
918
+ }
919
+
920
+ #ifdef ICE_CPP11_MAPPING
921
+ void
922
+ Ice::InputStream::read(pair<const Float*, const Float*>& v)
923
+ #else
924
+ void
925
+ Ice::InputStream::read(pair<const Float*, const Float*>& v, IceUtil::ScopedArray<Float>& result)
926
+ #endif
927
+ {
928
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Float)));
929
+ if(sz > 0)
930
+ {
931
+ #ifdef ICE_UNALIGNED
932
+ v.first = reinterpret_cast<Float*>(i);
933
+ i += sz * static_cast<int>(sizeof(Float));
934
+ v.second = reinterpret_cast<Float*>(i);
935
+ #else
936
+
937
+ # ifdef ICE_CPP11_MAPPING
938
+ auto result = new float[static_cast<size_t>(sz)];
939
+ _deleters.push_back([result] { delete[] result; });
940
+ v.first = result;
941
+ v.second = result + sz;
942
+ # else
943
+ result.reset(new Float[static_cast<size_t>(sz)]);
944
+ v.first = result.get();
945
+ v.second = result.get() + sz;
946
+ # endif
947
+
948
+ Container::iterator begin = i;
949
+ i += sz * static_cast<int>(sizeof(Float));
950
+ # ifdef ICE_BIG_ENDIAN
951
+ const Byte* src = &(*begin);
952
+ Byte* dest = reinterpret_cast<Byte*>(&result[0]) + sizeof(Float) - 1;
953
+ for(int j = 0 ; j < sz ; ++j)
954
+ {
955
+ *dest-- = *src++;
956
+ *dest-- = *src++;
957
+ *dest-- = *src++;
958
+ *dest-- = *src++;
959
+ dest += 2 * sizeof(Float);
960
+ }
961
+ # else
962
+ copy(begin, i, reinterpret_cast<Byte*>(&result[0]));
963
+ # endif
964
+ #endif
965
+ }
966
+ else
967
+ {
968
+ #ifndef ICE_CPP11_MAPPING
969
+ result.reset();
970
+ #endif
971
+ v.first = v.second = 0;
972
+ }
973
+ }
974
+
975
+ void
976
+ Ice::InputStream::read(Double& v)
977
+ {
978
+ if(b.end() - i < static_cast<int>(sizeof(Double)))
979
+ {
980
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
981
+ }
982
+ const Byte* src = &(*i);
983
+ i += sizeof(Double);
984
+ #ifdef ICE_BIG_ENDIAN
985
+ Byte* dest = reinterpret_cast<Byte*>(&v) + sizeof(Double) - 1;
986
+ *dest-- = *src++;
987
+ *dest-- = *src++;
988
+ *dest-- = *src++;
989
+ *dest-- = *src++;
990
+ *dest-- = *src++;
991
+ *dest-- = *src++;
992
+ *dest-- = *src++;
993
+ *dest = *src;
994
+ #else
995
+ Byte* dest = reinterpret_cast<Byte*>(&v);
996
+ *dest++ = *src++;
997
+ *dest++ = *src++;
998
+ *dest++ = *src++;
999
+ *dest++ = *src++;
1000
+ *dest++ = *src++;
1001
+ *dest++ = *src++;
1002
+ *dest++ = *src++;
1003
+ *dest = *src;
1004
+ #endif
1005
+ }
1006
+
1007
+ void
1008
+ Ice::InputStream::read(vector<Double>& v)
1009
+ {
1010
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Double)));
1011
+ if(sz > 0)
1012
+ {
1013
+ Container::iterator begin = i;
1014
+ i += sz * static_cast<int>(sizeof(Double));
1015
+ v.resize(static_cast<size_t>(sz));
1016
+ #ifdef ICE_BIG_ENDIAN
1017
+ const Byte* src = &(*begin);
1018
+ Byte* dest = reinterpret_cast<Byte*>(&v[0]) + sizeof(Double) - 1;
1019
+ for(int j = 0 ; j < sz ; ++j)
1020
+ {
1021
+ *dest-- = *src++;
1022
+ *dest-- = *src++;
1023
+ *dest-- = *src++;
1024
+ *dest-- = *src++;
1025
+ *dest-- = *src++;
1026
+ *dest-- = *src++;
1027
+ *dest-- = *src++;
1028
+ *dest-- = *src++;
1029
+ dest += 2 * sizeof(Double);
1030
+ }
1031
+ #else
1032
+ copy(begin, i, reinterpret_cast<Byte*>(&v[0]));
1033
+ #endif
1034
+ }
1035
+ else
1036
+ {
1037
+ v.clear();
1038
+ }
1039
+ }
1040
+
1041
+ #ifdef ICE_CPP11_MAPPING
1042
+ void
1043
+ Ice::InputStream::read(pair<const Double*, const Double*>& v)
1044
+ #else
1045
+ void
1046
+ Ice::InputStream::read(pair<const Double*, const Double*>& v, IceUtil::ScopedArray<Double>& result)
1047
+ #endif
1048
+ {
1049
+ Int sz = readAndCheckSeqSize(static_cast<int>(sizeof(Double)));
1050
+ if(sz > 0)
1051
+ {
1052
+ #ifdef ICE_UNALIGNED
1053
+ v.first = reinterpret_cast<Double*>(i);
1054
+ i += sz * static_cast<int>(sizeof(Double));
1055
+ v.second = reinterpret_cast<Double*>(i);
1056
+ #else
1057
+
1058
+ # ifdef ICE_CPP11_MAPPING
1059
+ auto result = new double[static_cast<size_t>(sz)];
1060
+ _deleters.push_back([result] { delete[] result; });
1061
+ v.first = result;
1062
+ v.second = result + sz;
1063
+ # else
1064
+ result.reset(new Double[static_cast<size_t>(sz)]);
1065
+ v.first = result.get();
1066
+ v.second = result.get() + sz;
1067
+ # endif
1068
+
1069
+ Container::iterator begin = i;
1070
+ i += sz * static_cast<int>(sizeof(Double));
1071
+ # ifdef ICE_BIG_ENDIAN
1072
+ const Byte* src = &(*begin);
1073
+ Byte* dest = reinterpret_cast<Byte*>(&result[0]) + sizeof(Double) - 1;
1074
+ for(int j = 0 ; j < sz ; ++j)
1075
+ {
1076
+ *dest-- = *src++;
1077
+ *dest-- = *src++;
1078
+ *dest-- = *src++;
1079
+ *dest-- = *src++;
1080
+ *dest-- = *src++;
1081
+ *dest-- = *src++;
1082
+ *dest-- = *src++;
1083
+ *dest-- = *src++;
1084
+ dest += 2 * sizeof(Double);
1085
+ }
1086
+ # else
1087
+ copy(begin, i, reinterpret_cast<Byte*>(&result[0]));
1088
+ # endif
1089
+ #endif
1090
+ }
1091
+ else
1092
+ {
1093
+ #ifndef ICE_CPP11_MAPPING
1094
+ result.reset();
1095
+ #endif
1096
+ v.first = v.second = 0;
1097
+ }
1098
+ }
1099
+
1100
+ void
1101
+ Ice::InputStream::read(std::string& v, bool convert)
1102
+ {
1103
+ Int sz = readSize();
1104
+ if(sz > 0)
1105
+ {
1106
+ if(b.end() - i < sz)
1107
+ {
1108
+ throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
1109
+ }
1110
+
1111
+ if(!convert || !readConverted(v, sz))
1112
+ {
1113
+ string(reinterpret_cast<const char*>(&*i), reinterpret_cast<const char*>(&*i) + sz).swap(v);
1114
+ }
1115
+ i += sz;
1116
+ }
1117
+ else
1118
+ {
1119
+ v.clear();
1120
+ }
1121
+ }
1122
+
1123
+ #ifdef ICE_CPP11_MAPPING
1124
+ void
1125
+ Ice::InputStream::read(const char*& vdata, size_t& vsize, bool convert)
1126
+ {
1127
+ int sz = readSize();
1128
+ if(sz > 0)
1129
+ {
1130
+ if(b.end() - i < sz)
1131
+ {
1132
+ throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
1133
+ }
1134
+
1135
+ if(convert == false)
1136
+ {
1137
+ vdata = reinterpret_cast<const char*>(&*i);
1138
+ vsize = static_cast<size_t>(sz);
1139
+ i += sz;
1140
+ }
1141
+ else
1142
+ {
1143
+ string converted;
1144
+ if(readConverted(converted, sz))
1145
+ {
1146
+ if(converted.size() <= static_cast<size_t>(sz))
1147
+ {
1148
+ //
1149
+ // Write converted string directly into buffer
1150
+ //
1151
+ std::memcpy(i, converted.data(), converted.size());
1152
+ vdata = reinterpret_cast<const char*>(&*i);
1153
+ vsize = converted.size();
1154
+ }
1155
+ else
1156
+ {
1157
+ auto holder = new string(std::move(converted));
1158
+ _deleters.push_back([holder] { delete holder; });
1159
+ vdata = holder->data();
1160
+ vsize = holder->size();
1161
+ }
1162
+ }
1163
+ else
1164
+ {
1165
+ vdata = reinterpret_cast<const char*>(&*i);
1166
+ vsize = static_cast<size_t>(sz);
1167
+ }
1168
+ i += sz;
1169
+ }
1170
+ }
1171
+ else
1172
+ {
1173
+ vdata = 0;
1174
+ vsize = 0;
1175
+ }
1176
+ }
1177
+
1178
+ #else
1179
+
1180
+ void
1181
+ Ice::InputStream::read(const char*& vdata, size_t& vsize)
1182
+ {
1183
+ Int sz = readSize();
1184
+ if(sz > 0)
1185
+ {
1186
+ if(b.end() - i < sz)
1187
+ {
1188
+ throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
1189
+ }
1190
+
1191
+ vdata = reinterpret_cast<const char*>(&*i);
1192
+ vsize = static_cast<size_t>(sz);
1193
+ i += sz;
1194
+ }
1195
+ else
1196
+ {
1197
+ vdata = 0;
1198
+ vsize = 0;
1199
+ }
1200
+ }
1201
+
1202
+ void
1203
+ Ice::InputStream::read(const char*& vdata, size_t& vsize, string& holder)
1204
+ {
1205
+ Int sz = readSize();
1206
+ if(sz > 0)
1207
+ {
1208
+ if(b.end() - i < sz)
1209
+ {
1210
+ throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
1211
+ }
1212
+
1213
+ if(readConverted(holder, sz))
1214
+ {
1215
+ vdata = holder.data();
1216
+ vsize = holder.size();
1217
+ }
1218
+ else
1219
+ {
1220
+ vdata = reinterpret_cast<const char*>(&*i);
1221
+ vsize = static_cast<size_t>(sz);
1222
+ }
1223
+ i += sz;
1224
+ }
1225
+ else
1226
+ {
1227
+ holder.clear();
1228
+ vdata = 0;
1229
+ vsize = 0;
1230
+ }
1231
+ }
1232
+ #endif
1233
+
1234
+ bool
1235
+ Ice::InputStream::readConverted(string& v, int sz)
1236
+ {
1237
+ try
1238
+ {
1239
+ bool converted = false;
1240
+
1241
+ //
1242
+ // NOTE: When using an _instance, we get a const& on the string reference to
1243
+ // not have to increment unecessarily its reference count.
1244
+ //
1245
+
1246
+ if(_instance)
1247
+ {
1248
+ const StringConverterPtr& stringConverter = _instance->getStringConverter();
1249
+ if(stringConverter)
1250
+ {
1251
+ stringConverter->fromUTF8(i, i + sz, v);
1252
+ converted = true;
1253
+ }
1254
+ }
1255
+ else
1256
+ {
1257
+ StringConverterPtr stringConverter = getProcessStringConverter();
1258
+ if(stringConverter)
1259
+ {
1260
+ stringConverter->fromUTF8(i, i + sz, v);
1261
+ converted = true;
1262
+ }
1263
+ }
1264
+
1265
+ return converted;
1266
+ }
1267
+ catch(const IllegalConversionException& ex)
1268
+ {
1269
+ throw StringConversionException(__FILE__, __LINE__, ex.reason());
1270
+ }
1271
+ }
1272
+
1273
+ void
1274
+ Ice::InputStream::read(vector<string>& v, bool convert)
1275
+ {
1276
+ Int sz = readAndCheckSeqSize(1);
1277
+ if(sz > 0)
1278
+ {
1279
+ v.resize(static_cast<size_t>(sz));
1280
+ for(size_t j = 0; j < static_cast<size_t>(sz); ++j)
1281
+ {
1282
+ read(v[j], convert);
1283
+ }
1284
+ }
1285
+ else
1286
+ {
1287
+ v.clear();
1288
+ }
1289
+ }
1290
+
1291
+ void
1292
+ Ice::InputStream::read(wstring& v)
1293
+ {
1294
+ Int sz = readSize();
1295
+ if(sz > 0)
1296
+ {
1297
+ if(b.end() - i < sz)
1298
+ {
1299
+ throwUnmarshalOutOfBoundsException(__FILE__, __LINE__);
1300
+ }
1301
+
1302
+ try
1303
+ {
1304
+ if(_instance)
1305
+ {
1306
+ const WstringConverterPtr& wstringConverter = _instance->getWstringConverter();
1307
+ wstringConverter->fromUTF8(i, i + sz, v);
1308
+ }
1309
+ else
1310
+ {
1311
+ WstringConverterPtr wstringConverter = getProcessWstringConverter();
1312
+ wstringConverter->fromUTF8(i, i + sz, v);
1313
+ }
1314
+
1315
+ i += sz;
1316
+ }
1317
+ catch(const IllegalConversionException& ex)
1318
+ {
1319
+ throw StringConversionException(__FILE__, __LINE__, ex.reason());
1320
+ }
1321
+ }
1322
+ else
1323
+ {
1324
+ v.clear();
1325
+ }
1326
+ }
1327
+
1328
+ void
1329
+ Ice::InputStream::read(vector<wstring>& v)
1330
+ {
1331
+ size_t sz = static_cast<size_t>(readAndCheckSeqSize(1));
1332
+ if(sz > 0)
1333
+ {
1334
+ v.resize(sz);
1335
+ for(size_t j = 0; j < sz; ++j)
1336
+ {
1337
+ read(v[j]);
1338
+ }
1339
+ }
1340
+ else
1341
+ {
1342
+ v.clear();
1343
+ }
1344
+ }
1345
+
1346
+ #ifdef ICE_CPP11_MAPPING
1347
+ shared_ptr<ObjectPrx>
1348
+ Ice::InputStream::readProxy()
1349
+ {
1350
+ if(!_instance)
1351
+ {
1352
+ throw MarshalException(__FILE__, __LINE__, "cannot unmarshal a proxy without a communicator");
1353
+ }
1354
+
1355
+ return _instance->proxyFactory()->streamToProxy(this);
1356
+ }
1357
+ #else
1358
+ void
1359
+ Ice::InputStream::read(ObjectPrx& v)
1360
+ {
1361
+ if(!_instance)
1362
+ {
1363
+ throw MarshalException(__FILE__, __LINE__, "cannot unmarshal a proxy without a communicator");
1364
+ }
1365
+
1366
+ v = _instance->proxyFactory()->streamToProxy(this);
1367
+ }
1368
+ #endif
1369
+
1370
+ Int
1371
+ Ice::InputStream::readEnum(Int maxValue)
1372
+ {
1373
+ if(getEncoding() == Encoding_1_0)
1374
+ {
1375
+ if(maxValue < 127)
1376
+ {
1377
+ Byte value;
1378
+ read(value);
1379
+ return value;
1380
+ }
1381
+ else if(maxValue < 32767)
1382
+ {
1383
+ Short value;
1384
+ read(value);
1385
+ return value;
1386
+ }
1387
+ else
1388
+ {
1389
+ Int value;
1390
+ read(value);
1391
+ return value;
1392
+ }
1393
+ }
1394
+ else
1395
+ {
1396
+ return readSize();
1397
+ }
1398
+ }
1399
+
1400
+ void
1401
+ Ice::InputStream::throwException(ICE_IN(ICE_DELEGATE(UserExceptionFactory)) factory)
1402
+ {
1403
+ initEncaps();
1404
+ _currentEncaps->decoder->throwException(factory);
1405
+ }
1406
+
1407
+ bool
1408
+ Ice::InputStream::readOptImpl(Int readTag, OptionalFormat expectedFormat)
1409
+ {
1410
+ if(getEncoding() == Encoding_1_0)
1411
+ {
1412
+ return false; // Optional members aren't supported with the 1.0 encoding.
1413
+ }
1414
+
1415
+ while(true)
1416
+ {
1417
+ if(i >= b.begin() + _currentEncaps->start + _currentEncaps->sz)
1418
+ {
1419
+ return false; // End of encapsulation also indicates end of optionals.
1420
+ }
1421
+
1422
+ Byte v;
1423
+ read(v);
1424
+ if(v == OPTIONAL_END_MARKER)
1425
+ {
1426
+ --i; // Rewind
1427
+ return false;
1428
+ }
1429
+
1430
+ OptionalFormat format = static_cast<OptionalFormat>(v & 0x07); // First 3 bits.
1431
+ Int tag = static_cast<Int>(v >> 3);
1432
+ if(tag == 30)
1433
+ {
1434
+ tag = readSize();
1435
+ }
1436
+
1437
+ if(tag > readTag)
1438
+ {
1439
+ i -= tag < 30 ? 1 : (tag < 255 ? 2 : 6); // Rewind
1440
+ return false; // No optional data members with the requested tag.
1441
+ }
1442
+ else if(tag < readTag)
1443
+ {
1444
+ skipOptional(format); // Skip optional data members
1445
+ }
1446
+ else
1447
+ {
1448
+ if(format != expectedFormat)
1449
+ {
1450
+ ostringstream os;
1451
+ os << "invalid optional data member `" << tag << "': unexpected format";
1452
+ throw MarshalException(__FILE__, __LINE__, os.str());
1453
+ }
1454
+ return true;
1455
+ }
1456
+ }
1457
+ return true; // Keep the compiler happy.
1458
+ }
1459
+
1460
+ void
1461
+ Ice::InputStream::skipOptional(OptionalFormat type)
1462
+ {
1463
+ switch(type)
1464
+ {
1465
+ case ICE_SCOPED_ENUM(OptionalFormat, F1):
1466
+ {
1467
+ skip(1);
1468
+ break;
1469
+ }
1470
+ case ICE_SCOPED_ENUM(OptionalFormat, F2):
1471
+ {
1472
+ skip(2);
1473
+ break;
1474
+ }
1475
+ case ICE_SCOPED_ENUM(OptionalFormat, F4):
1476
+ {
1477
+ skip(4);
1478
+ break;
1479
+ }
1480
+ case ICE_SCOPED_ENUM(OptionalFormat, F8):
1481
+ {
1482
+ skip(8);
1483
+ break;
1484
+ }
1485
+ case ICE_SCOPED_ENUM(OptionalFormat, Size):
1486
+ {
1487
+ skipSize();
1488
+ break;
1489
+ }
1490
+ case ICE_SCOPED_ENUM(OptionalFormat, VSize):
1491
+ {
1492
+ skip(static_cast<size_t>(readSize()));
1493
+ break;
1494
+ }
1495
+ case ICE_SCOPED_ENUM(OptionalFormat, FSize):
1496
+ {
1497
+ Int sz;
1498
+ read(sz);
1499
+ if(sz < 0)
1500
+ {
1501
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
1502
+ }
1503
+ skip(static_cast<size_t>(sz));
1504
+ break;
1505
+ }
1506
+ case ICE_SCOPED_ENUM(OptionalFormat, Class):
1507
+ {
1508
+ read(0, 0);
1509
+ break;
1510
+ }
1511
+ }
1512
+ }
1513
+
1514
+ void
1515
+ Ice::InputStream::skipOptionals()
1516
+ {
1517
+ //
1518
+ // Skip remaining un-read optional members.
1519
+ //
1520
+ while(true)
1521
+ {
1522
+ if(i >= b.begin() + _currentEncaps->start + _currentEncaps->sz)
1523
+ {
1524
+ return; // End of encapsulation also indicates end of optionals.
1525
+ }
1526
+
1527
+ Byte v;
1528
+ read(v);
1529
+ if(v == OPTIONAL_END_MARKER)
1530
+ {
1531
+ return;
1532
+ }
1533
+
1534
+ OptionalFormat format = static_cast<OptionalFormat>(v & 0x07); // Read first 3 bits.
1535
+ if(static_cast<Int>(v >> 3) == 30)
1536
+ {
1537
+ skipSize();
1538
+ }
1539
+ skipOptional(format);
1540
+ }
1541
+ }
1542
+
1543
+ void
1544
+ Ice::InputStream::throwUnmarshalOutOfBoundsException(const char* file, int line)
1545
+ {
1546
+ throw UnmarshalOutOfBoundsException(file, line);
1547
+ }
1548
+
1549
+ void
1550
+ Ice::InputStream::throwEncapsulationException(const char* file, int line)
1551
+ {
1552
+ throw EncapsulationException(file, line);
1553
+ }
1554
+
1555
+ string
1556
+ Ice::InputStream::resolveCompactId(int id) const
1557
+ {
1558
+ string type;
1559
+
1560
+ #ifdef ICE_CPP11_MAPPING
1561
+ function<string(int)> resolver = compactIdResolver();
1562
+ #else
1563
+ CompactIdResolverPtr resolver = compactIdResolver();
1564
+ #endif
1565
+
1566
+ if(resolver)
1567
+ {
1568
+ try
1569
+ {
1570
+ #ifdef ICE_CPP11_MAPPING
1571
+ type = resolver(id);
1572
+ #else
1573
+ type = resolver->resolve(id);
1574
+ #endif
1575
+ }
1576
+ catch(const LocalException&)
1577
+ {
1578
+ throw;
1579
+ }
1580
+ catch(const std::exception& ex)
1581
+ {
1582
+ ostringstream ostr;
1583
+ ostr << "exception in CompactIdResolver for ID " << id;
1584
+ string msg = ostr.str();
1585
+ string what = ex.what();
1586
+ if(!what.empty())
1587
+ {
1588
+ msg += ":\n" + what;
1589
+ }
1590
+ throw MarshalException(__FILE__, __LINE__, msg);
1591
+ }
1592
+ catch(...)
1593
+ {
1594
+ ostringstream ostr;
1595
+ ostr << "unknown exception in CompactIdResolver for ID " << id;
1596
+ throw MarshalException(__FILE__, __LINE__, ostr.str());
1597
+ }
1598
+ }
1599
+
1600
+ return type;
1601
+ }
1602
+
1603
+ void
1604
+ Ice::InputStream::postUnmarshal(const ValuePtr& v) const
1605
+ {
1606
+ try
1607
+ {
1608
+ #ifndef ICE_CPP11_MAPPING
1609
+ if(_collectObjects)
1610
+ {
1611
+ v->ice_collectable(true);
1612
+ }
1613
+ #endif
1614
+ v->ice_postUnmarshal();
1615
+ }
1616
+ catch(const std::exception& ex)
1617
+ {
1618
+ if(logger())
1619
+ {
1620
+ Warning out(logger());
1621
+ out << "std::exception raised by ice_postUnmarshal:\n" << ex;
1622
+ }
1623
+ }
1624
+ catch(...)
1625
+ {
1626
+ if(logger())
1627
+ {
1628
+ Warning out(logger());
1629
+ out << "unknown exception raised by ice_postUnmarshal";
1630
+ }
1631
+ }
1632
+ }
1633
+
1634
+ void
1635
+ Ice::InputStream::traceSkipSlice(const string& typeId, SliceType sliceType) const
1636
+ {
1637
+ if(_traceSlicing && logger())
1638
+ {
1639
+ traceSlicing(sliceType == ExceptionSlice ? "exception" : "object", typeId, "Slicing", logger());
1640
+ }
1641
+ }
1642
+
1643
+ ValueFactoryManagerPtr
1644
+ Ice::InputStream::valueFactoryManager() const
1645
+ {
1646
+ if(_valueFactoryManager)
1647
+ {
1648
+ return _valueFactoryManager;
1649
+ }
1650
+ else if(_instance)
1651
+ {
1652
+ return _instance->initializationData().valueFactoryManager;
1653
+ }
1654
+
1655
+ return 0;
1656
+ }
1657
+
1658
+ LoggerPtr
1659
+ Ice::InputStream::logger() const
1660
+ {
1661
+ if(_logger)
1662
+ {
1663
+ return _logger;
1664
+ }
1665
+ else if(_instance)
1666
+ {
1667
+ return _instance->initializationData().logger;
1668
+ }
1669
+
1670
+ return 0;
1671
+ }
1672
+
1673
+ #ifdef ICE_CPP11_MAPPING
1674
+ function<string(int)>
1675
+ Ice::InputStream::compactIdResolver() const
1676
+ {
1677
+ if(_compactIdResolver)
1678
+ {
1679
+ return _compactIdResolver;
1680
+ }
1681
+ else if(_instance)
1682
+ {
1683
+ return _instance->initializationData().compactIdResolver;
1684
+ }
1685
+
1686
+ return nullptr;
1687
+ }
1688
+ #else
1689
+ CompactIdResolverPtr
1690
+ Ice::InputStream::compactIdResolver() const
1691
+ {
1692
+ if(_compactIdResolver)
1693
+ {
1694
+ return _compactIdResolver;
1695
+ }
1696
+ else if(_instance)
1697
+ {
1698
+ return _instance->initializationData().compactIdResolver;
1699
+ }
1700
+
1701
+ return 0;
1702
+ }
1703
+ #endif
1704
+
1705
+ void
1706
+ Ice::InputStream::initEncaps()
1707
+ {
1708
+ if(!_currentEncaps) // Lazy initialization.
1709
+ {
1710
+ _currentEncaps = &_preAllocatedEncaps;
1711
+ _currentEncaps->encoding = _encoding;
1712
+ _currentEncaps->sz = static_cast<Ice::Int>(b.size());
1713
+ }
1714
+
1715
+ if(!_currentEncaps->decoder) // Lazy initialization.
1716
+ {
1717
+ ValueFactoryManagerPtr vfm = valueFactoryManager();
1718
+ if(_currentEncaps->encoding == Encoding_1_0)
1719
+ {
1720
+ _currentEncaps->decoder = new EncapsDecoder10(this, _currentEncaps, _sliceValues, _classGraphDepthMax, vfm);
1721
+ }
1722
+ else
1723
+ {
1724
+ _currentEncaps->decoder = new EncapsDecoder11(this, _currentEncaps, _sliceValues, _classGraphDepthMax, vfm);
1725
+ }
1726
+ }
1727
+ }
1728
+
1729
+ Ice::InputStream::EncapsDecoder::~EncapsDecoder()
1730
+ {
1731
+ // Out of line to avoid weak vtable
1732
+ }
1733
+
1734
+ string
1735
+ Ice::InputStream::EncapsDecoder::readTypeId(bool isIndex)
1736
+ {
1737
+ if(isIndex)
1738
+ {
1739
+ Int index = _stream->readSize();
1740
+ TypeIdMap::const_iterator k = _typeIdMap.find(index);
1741
+ if(k == _typeIdMap.end())
1742
+ {
1743
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
1744
+ }
1745
+ return k->second;
1746
+ }
1747
+ else
1748
+ {
1749
+ string typeId;
1750
+ _stream->read(typeId, false);
1751
+ _typeIdMap.insert(make_pair(++_typeIdIndex, typeId));
1752
+ return typeId;
1753
+ }
1754
+ }
1755
+
1756
+ Ice::ValuePtr
1757
+ Ice::InputStream::EncapsDecoder::newInstance(const string& typeId)
1758
+ {
1759
+ Ice::ValuePtr v;
1760
+
1761
+ //
1762
+ // Try to find a factory registered for the specific type.
1763
+ //
1764
+ #ifdef ICE_CPP11_MAPPING
1765
+ function<ValuePtr(const string&)> userFactory;
1766
+ if(_valueFactoryManager)
1767
+ {
1768
+ userFactory = _valueFactoryManager->find(typeId);
1769
+ if(userFactory)
1770
+ {
1771
+ v = userFactory(typeId);
1772
+ }
1773
+ }
1774
+ #else
1775
+ ValueFactoryPtr userFactory;
1776
+ if(_valueFactoryManager)
1777
+ {
1778
+ userFactory = _valueFactoryManager->find(typeId);
1779
+ if(userFactory)
1780
+ {
1781
+ v = userFactory->create(typeId);
1782
+ }
1783
+ }
1784
+ #endif
1785
+ //
1786
+ // If that fails, invoke the default factory if one has been registered.
1787
+ //
1788
+ if(!v && _valueFactoryManager)
1789
+ {
1790
+ userFactory = _valueFactoryManager->find("");
1791
+ if(userFactory)
1792
+ {
1793
+ #ifdef ICE_CPP11_MAPPING
1794
+ v = userFactory(typeId);
1795
+ #else
1796
+ v = userFactory->create(typeId);
1797
+ #endif
1798
+ }
1799
+ }
1800
+
1801
+ //
1802
+ // Last chance: check the table of static factories (i.e.,
1803
+ // automatically generated factories for concrete classes).
1804
+ //
1805
+ if(!v)
1806
+ {
1807
+ #ifdef ICE_CPP11_MAPPING
1808
+ function<ValuePtr(const string&)> of = IceInternal::factoryTable->getValueFactory(typeId);
1809
+ if(of)
1810
+ {
1811
+ v = of(typeId);
1812
+ assert(v);
1813
+ }
1814
+ #else
1815
+ ValueFactoryPtr of = IceInternal::factoryTable->getValueFactory(typeId);
1816
+ if(of)
1817
+ {
1818
+ v = of->create(typeId);
1819
+ assert(v);
1820
+ }
1821
+ #endif
1822
+ }
1823
+ return v;
1824
+ }
1825
+
1826
+ void
1827
+ Ice::InputStream::EncapsDecoder::addPatchEntry(Int index, PatchFunc patchFunc, void* patchAddr)
1828
+ {
1829
+ assert(index > 0);
1830
+
1831
+ //
1832
+ // Check if we already unmarshaled the object. If that's the case, just patch the object smart pointer
1833
+ // and we're done. A null value indicates we've encountered a cycle and Ice.AllowClassCycles is false.
1834
+ //
1835
+ IndexToPtrMap::iterator p = _unmarshaledMap.find(index);
1836
+ if(p != _unmarshaledMap.end())
1837
+ {
1838
+ if (p->second == ICE_NULLPTR)
1839
+ {
1840
+ assert(!_stream->_instance->acceptClassCycles());
1841
+ throw MarshalException(__FILE__, __LINE__, "cycle detected during Value unmarshaling");
1842
+ }
1843
+ (*patchFunc)(patchAddr, p->second);
1844
+ return;
1845
+ }
1846
+
1847
+ //
1848
+ // Add a patch entry if the object isn't unmarshaled yet, the
1849
+ // smart pointer will be patched when the instance is
1850
+ // unmarshaled.
1851
+ //
1852
+
1853
+ PatchMap::iterator q = _patchMap.find(index);
1854
+ if(q == _patchMap.end())
1855
+ {
1856
+ //
1857
+ // We have no outstanding instances to be patched for this
1858
+ // index, so make a new entry in the patch map.
1859
+ //
1860
+ q = _patchMap.insert(make_pair(index, PatchList())).first;
1861
+ }
1862
+
1863
+ //
1864
+ // Append a patch entry for this instance.
1865
+ //
1866
+ PatchEntry e;
1867
+ e.patchFunc = patchFunc;
1868
+ e.patchAddr = patchAddr;
1869
+ e.classGraphDepth = _classGraphDepth;
1870
+ q->second.push_back(e);
1871
+ }
1872
+
1873
+ void
1874
+ Ice::InputStream::EncapsDecoder::unmarshal(Int index, const Ice::ValuePtr& v)
1875
+ {
1876
+ //
1877
+ // Add the object to the map of unmarshaled instances, this must
1878
+ // be done before reading the instances (for circular references).
1879
+ //
1880
+ // If circular references are not allowed we insert null (for cycle detection) and add
1881
+ // the object to the map once it has been fully unmarshaled.
1882
+ //
1883
+ _unmarshaledMap.insert(make_pair(index, _stream->_instance->acceptClassCycles() ? v : Ice::ValuePtr()));
1884
+
1885
+ //
1886
+ // Read the object.
1887
+ //
1888
+ v->_iceRead(_stream);
1889
+
1890
+ //
1891
+ // Patch all instances now that the object is unmarshaled.
1892
+ //
1893
+ PatchMap::iterator patchPos = _patchMap.find(index);
1894
+ if(patchPos != _patchMap.end())
1895
+ {
1896
+ assert(patchPos->second.size() > 0);
1897
+
1898
+ //
1899
+ // Patch all pointers that refer to the instance.
1900
+ //
1901
+ for(PatchList::iterator k = patchPos->second.begin(); k != patchPos->second.end(); ++k)
1902
+ {
1903
+ (*k->patchFunc)(k->patchAddr, v);
1904
+ }
1905
+
1906
+ //
1907
+ // Clear out the patch map for that index -- there is nothing left
1908
+ // to patch for that index for the time being.
1909
+ //
1910
+ _patchMap.erase(patchPos);
1911
+ }
1912
+
1913
+ if(_valueList.empty() && _patchMap.empty())
1914
+ {
1915
+ _stream->postUnmarshal(v);
1916
+ }
1917
+ else
1918
+ {
1919
+ _valueList.push_back(v);
1920
+
1921
+ if(_patchMap.empty())
1922
+ {
1923
+ //
1924
+ // Iterate over the value list and invoke ice_postUnmarshal on
1925
+ // each value. We must do this after all values have been
1926
+ // unmarshaled in order to ensure that any value data members
1927
+ // have been properly patched.
1928
+ //
1929
+ for(ValueList::iterator p = _valueList.begin(); p != _valueList.end(); ++p)
1930
+ {
1931
+ _stream->postUnmarshal(*p);
1932
+ }
1933
+ _valueList.clear();
1934
+ }
1935
+ }
1936
+
1937
+ if(!_stream->_instance->acceptClassCycles())
1938
+ {
1939
+ // This class has been fully unmarshaled without creating any cycles
1940
+ // It can be added to the map now.
1941
+ _unmarshaledMap[index] = v;
1942
+ }
1943
+ }
1944
+
1945
+ void
1946
+ Ice::InputStream::EncapsDecoder10::read(PatchFunc patchFunc, void* patchAddr)
1947
+ {
1948
+ assert(patchFunc && patchAddr);
1949
+
1950
+ //
1951
+ // Object references are encoded as a negative integer in 1.0.
1952
+ //
1953
+ Int index;
1954
+ _stream->read(index);
1955
+ if(index > 0 || index == INT_MIN)
1956
+ {
1957
+ throw MarshalException(__FILE__, __LINE__, "invalid object id");
1958
+ }
1959
+ index = -index;
1960
+
1961
+ if(index == 0)
1962
+ {
1963
+ //
1964
+ // Calling the patch function for null instances is necessary for correct functioning of Ice for
1965
+ // Python and Ruby.
1966
+ //
1967
+ ValuePtr nil;
1968
+ patchFunc(patchAddr, nil);
1969
+ }
1970
+ else
1971
+ {
1972
+ addPatchEntry(index, patchFunc, patchAddr);
1973
+ }
1974
+ }
1975
+
1976
+ void
1977
+ Ice::InputStream::EncapsDecoder10::throwException(ICE_IN(ICE_DELEGATE(UserExceptionFactory)) factory)
1978
+ {
1979
+ assert(_sliceType == NoSlice);
1980
+
1981
+ //
1982
+ // User exception with the 1.0 encoding start with a boolean flag
1983
+ // that indicates whether or not the exception has classes.
1984
+ //
1985
+ // This allows reading the pending values even if some part of
1986
+ // the exception was sliced.
1987
+ //
1988
+ bool usesClasses;
1989
+ _stream->read(usesClasses);
1990
+
1991
+ _sliceType = ExceptionSlice;
1992
+ _skipFirstSlice = false;
1993
+
1994
+ //
1995
+ // Read the first slice header.
1996
+ //
1997
+ startSlice();
1998
+ const string mostDerivedId = _typeId;
1999
+ ICE_DELEGATE(UserExceptionFactory) exceptionFactory = factory;
2000
+ while(true)
2001
+ {
2002
+ //
2003
+ // Look for a statically-generated factory for this ID.
2004
+ //
2005
+ if(!exceptionFactory)
2006
+ {
2007
+ exceptionFactory = factoryTable->getExceptionFactory(_typeId);
2008
+ }
2009
+
2010
+ //
2011
+ // We found a factory, we get out of this loop.
2012
+ //
2013
+ if(exceptionFactory)
2014
+ {
2015
+ //
2016
+ // Got factory -- ask the factory to instantiate the
2017
+ // exception, initialize the exception members, and throw
2018
+ // the exception.
2019
+ //
2020
+ try
2021
+ {
2022
+ #ifdef ICE_CPP11_MAPPING
2023
+ exceptionFactory(_typeId);
2024
+ #else
2025
+ exceptionFactory->createAndThrow(_typeId);
2026
+ #endif
2027
+ }
2028
+ catch(UserException& ex)
2029
+ {
2030
+ ex._read(_stream);
2031
+ if(usesClasses)
2032
+ {
2033
+ readPendingValues();
2034
+ }
2035
+ throw;
2036
+
2037
+ // Never reached.
2038
+ }
2039
+ }
2040
+
2041
+ //
2042
+ // Slice off what we don't understand.
2043
+ //
2044
+ skipSlice();
2045
+ try
2046
+ {
2047
+ startSlice();
2048
+ }
2049
+ catch(UnmarshalOutOfBoundsException& ex)
2050
+ {
2051
+ //
2052
+ // An oversight in the 1.0 encoding means there is no marker to indicate
2053
+ // the last slice of an exception. As a result, we just try to read the
2054
+ // next type ID, which raises UnmarshalOutOfBoundsException when the
2055
+ // input buffer underflows.
2056
+ //
2057
+ // Set the reason member to a more helpful message.
2058
+ //
2059
+ ex.reason = "unknown exception type `" + mostDerivedId + "'";
2060
+ throw;
2061
+ }
2062
+ }
2063
+ }
2064
+
2065
+ void
2066
+ #ifndef NDEBUG
2067
+ Ice::InputStream::EncapsDecoder10::startInstance(SliceType sliceType)
2068
+ #else
2069
+ Ice::InputStream::EncapsDecoder10::startInstance(SliceType)
2070
+ #endif
2071
+ {
2072
+ assert(_sliceType == sliceType);
2073
+ _skipFirstSlice = true;
2074
+ }
2075
+
2076
+ SlicedDataPtr
2077
+ Ice::InputStream::EncapsDecoder10::endInstance(bool)
2078
+ {
2079
+ //
2080
+ // Read the Ice::Value slice.
2081
+ //
2082
+ if(_sliceType == ValueSlice)
2083
+ {
2084
+ startSlice();
2085
+ Int sz = _stream->readSize(); // For compatibility with the old AFM.
2086
+ if(sz != 0)
2087
+ {
2088
+ throw MarshalException(__FILE__, __LINE__, "invalid Object slice");
2089
+ }
2090
+ endSlice();
2091
+ }
2092
+ _sliceType = NoSlice;
2093
+ return 0;
2094
+ }
2095
+
2096
+ const std::string&
2097
+ Ice::InputStream::EncapsDecoder10::startSlice()
2098
+ {
2099
+ //
2100
+ // If first slice, don't read the header, it was already read in
2101
+ // readInstance or throwException to find the factory.
2102
+ //
2103
+ if(_skipFirstSlice)
2104
+ {
2105
+ _skipFirstSlice = false;
2106
+ return _typeId;
2107
+ }
2108
+
2109
+ //
2110
+ // For values, first read the type ID boolean which indicates
2111
+ // whether or not the type ID is encoded as a string or as an
2112
+ // index. For exceptions, the type ID is always encoded as a
2113
+ // string.
2114
+ //
2115
+ if(_sliceType == ValueSlice)
2116
+ {
2117
+ bool isIndex;
2118
+ _stream->read(isIndex);
2119
+ _typeId = readTypeId(isIndex);
2120
+ }
2121
+ else
2122
+ {
2123
+ _stream->read(_typeId, false);
2124
+ }
2125
+
2126
+ _stream->read(_sliceSize);
2127
+ if(_sliceSize < 4)
2128
+ {
2129
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
2130
+ }
2131
+ return _typeId;
2132
+ }
2133
+
2134
+ void
2135
+ Ice::InputStream::EncapsDecoder10::endSlice()
2136
+ {
2137
+ }
2138
+
2139
+ void
2140
+ Ice::InputStream::EncapsDecoder10::skipSlice()
2141
+ {
2142
+ _stream->traceSkipSlice(_typeId, _sliceType);
2143
+ assert(_sliceSize >= 4);
2144
+ _stream->skip(static_cast<size_t>(_sliceSize) - sizeof(Int));
2145
+ }
2146
+
2147
+ void
2148
+ Ice::InputStream::EncapsDecoder10::readPendingValues()
2149
+ {
2150
+ Int num;
2151
+ do
2152
+ {
2153
+ num = _stream->readSize();
2154
+ for(Int k = num; k > 0; --k)
2155
+ {
2156
+ readInstance();
2157
+ }
2158
+ }
2159
+ while(num);
2160
+
2161
+ if(!_patchMap.empty())
2162
+ {
2163
+ //
2164
+ // If any entries remain in the patch map, the sender has sent an index for an object, but failed
2165
+ // to supply the object.
2166
+ //
2167
+ throw MarshalException(__FILE__, __LINE__, "index for class received, but no instance");
2168
+ }
2169
+ }
2170
+
2171
+ void
2172
+ Ice::InputStream::EncapsDecoder10::readInstance()
2173
+ {
2174
+ Int index;
2175
+ _stream->read(index);
2176
+
2177
+ if(index <= 0)
2178
+ {
2179
+ throw MarshalException(__FILE__, __LINE__, "invalid object id");
2180
+ }
2181
+
2182
+ _sliceType = ValueSlice;
2183
+ _skipFirstSlice = false;
2184
+
2185
+ //
2186
+ // Read the first slice header.
2187
+ //
2188
+ startSlice();
2189
+ const string mostDerivedId = _typeId;
2190
+ ValuePtr v;
2191
+ while(true)
2192
+ {
2193
+ //
2194
+ // For the 1.0 encoding, the type ID for the base Object class
2195
+ // marks the last slice.
2196
+ //
2197
+ if(_typeId == Object::ice_staticId())
2198
+ {
2199
+ throw NoValueFactoryException(__FILE__, __LINE__, "", mostDerivedId);
2200
+ }
2201
+
2202
+ v = newInstance(_typeId);
2203
+
2204
+ //
2205
+ // We found a factory, we get out of this loop.
2206
+ //
2207
+ if(v)
2208
+ {
2209
+ break;
2210
+ }
2211
+
2212
+ //
2213
+ // If value slicing is disabled, stop unmarshaling.
2214
+ //
2215
+ if(!_sliceValues)
2216
+ {
2217
+ throw NoValueFactoryException(__FILE__, __LINE__, "no value factory found and value slicing is disabled",
2218
+ _typeId);
2219
+ }
2220
+
2221
+ //
2222
+ // Slice off what we don't understand.
2223
+ //
2224
+ skipSlice();
2225
+ startSlice(); // Read next Slice header for next iteration.
2226
+ }
2227
+
2228
+ //
2229
+ // Compute the biggest class graph depth of this object. To compute this,
2230
+ // we get the class graph depth of each ancestor from the patch map and
2231
+ // keep the biggest one.
2232
+ //
2233
+ _classGraphDepth = 0;
2234
+ PatchMap::iterator patchPos = _patchMap.find(index);
2235
+ if(patchPos != _patchMap.end())
2236
+ {
2237
+ assert(patchPos->second.size() > 0);
2238
+ for(PatchList::iterator k = patchPos->second.begin(); k != patchPos->second.end(); ++k)
2239
+ {
2240
+ if(k->classGraphDepth > _classGraphDepth)
2241
+ {
2242
+ _classGraphDepth = k->classGraphDepth;
2243
+ }
2244
+ }
2245
+ }
2246
+
2247
+ if(++_classGraphDepth > _classGraphDepthMax)
2248
+ {
2249
+ throw MarshalException(__FILE__, __LINE__, "maximum class graph depth reached");
2250
+ }
2251
+
2252
+ //
2253
+ // Unmarshal the instance and add it to the map of unmarshaled instances.
2254
+ //
2255
+ unmarshal(index, v);
2256
+ }
2257
+
2258
+ void
2259
+ Ice::InputStream::EncapsDecoder11::read(PatchFunc patchFunc, void* patchAddr)
2260
+ {
2261
+ Int index = _stream->readSize();
2262
+ if(index < 0)
2263
+ {
2264
+ throw MarshalException(__FILE__, __LINE__, "invalid object id");
2265
+ }
2266
+ else if(index == 0)
2267
+ {
2268
+ //
2269
+ // Calling the patch function for null instances is necessary for correct functioning of Ice for
2270
+ // Python and Ruby.
2271
+ //
2272
+ if(patchFunc)
2273
+ {
2274
+ ValuePtr nil;
2275
+ patchFunc(patchAddr, nil);
2276
+ }
2277
+ }
2278
+ else if(_current && _current->sliceFlags & FLAG_HAS_INDIRECTION_TABLE)
2279
+ {
2280
+ //
2281
+ // When reading an object within a slice and there's an
2282
+ // indirect object table, always read an indirect reference
2283
+ // that points to an object from the indirect object table
2284
+ // marshaled at the end of the Slice.
2285
+ //
2286
+ // Maintain a list of indirect references. Note that the
2287
+ // indirect index starts at 1, so we decrement it by one to
2288
+ // derive an index into the indirection table that we'll read
2289
+ // at the end of the slice.
2290
+ //
2291
+ if(patchFunc)
2292
+ {
2293
+ IndirectPatchEntry e;
2294
+ e.index = index - 1;
2295
+ e.patchFunc = patchFunc;
2296
+ e.patchAddr = patchAddr;
2297
+ _current->indirectPatchList.push_back(e);
2298
+ }
2299
+ }
2300
+ else
2301
+ {
2302
+ readInstance(index, patchFunc, patchAddr);
2303
+ }
2304
+ }
2305
+
2306
+ void
2307
+ Ice::InputStream::EncapsDecoder11::throwException(ICE_IN(ICE_DELEGATE(UserExceptionFactory)) factory)
2308
+ {
2309
+ assert(!_current);
2310
+
2311
+ push(ExceptionSlice);
2312
+
2313
+ //
2314
+ // Read the first slice header.
2315
+ //
2316
+ startSlice();
2317
+ const string mostDerivedId = _current->typeId;
2318
+ ICE_DELEGATE(UserExceptionFactory) exceptionFactory = factory;
2319
+ while(true)
2320
+ {
2321
+ //
2322
+ // Look for a statically-generated factory for this ID.
2323
+ //
2324
+ if(!exceptionFactory)
2325
+ {
2326
+ exceptionFactory = factoryTable->getExceptionFactory(_current->typeId);
2327
+ }
2328
+
2329
+ //
2330
+ // We found a factory, we get out of this loop.
2331
+ //
2332
+ if(exceptionFactory)
2333
+ {
2334
+ //
2335
+ // Got factory -- ask the factory to instantiate the
2336
+ // exception, initialize the exception members, and throw
2337
+ // the exception.
2338
+ //
2339
+ try
2340
+ {
2341
+ #ifdef ICE_CPP11_MAPPING
2342
+ exceptionFactory(_current->typeId);
2343
+ #else
2344
+ exceptionFactory->createAndThrow(_current->typeId);
2345
+ #endif
2346
+ }
2347
+ catch(UserException& ex)
2348
+ {
2349
+ ex._read(_stream);
2350
+ throw;
2351
+
2352
+ // Never reached.
2353
+ }
2354
+ }
2355
+
2356
+ //
2357
+ // Slice off what we don't understand.
2358
+ //
2359
+ skipSlice();
2360
+
2361
+ //
2362
+ // If this is the last slice, raise an exception and stop un-marshalling.
2363
+ //
2364
+ if(_current->sliceFlags & FLAG_IS_LAST_SLICE)
2365
+ {
2366
+ throw UnknownUserException(__FILE__, __LINE__, mostDerivedId);
2367
+ }
2368
+
2369
+ startSlice();
2370
+ }
2371
+ }
2372
+
2373
+ void
2374
+ #ifndef NDEBUG
2375
+ Ice::InputStream::EncapsDecoder11::startInstance(SliceType sliceType)
2376
+ #else
2377
+ Ice::InputStream::EncapsDecoder11::startInstance(SliceType)
2378
+ #endif
2379
+ {
2380
+ assert(_current->sliceType == sliceType);
2381
+ _current->skipFirstSlice = true;
2382
+ }
2383
+
2384
+ SlicedDataPtr
2385
+ Ice::InputStream::EncapsDecoder11::endInstance(bool preserve)
2386
+ {
2387
+ SlicedDataPtr slicedData;
2388
+ if(preserve)
2389
+ {
2390
+ slicedData = readSlicedData();
2391
+ }
2392
+ _current->slices.clear();
2393
+ _current->indirectionTables.clear();
2394
+ _current = _current->previous;
2395
+ return slicedData;
2396
+ }
2397
+
2398
+ const std::string&
2399
+ Ice::InputStream::EncapsDecoder11::startSlice()
2400
+ {
2401
+ //
2402
+ // If first slice, don't read the header, it was already read in
2403
+ // readInstance or throwException to find the factory.
2404
+ //
2405
+ if(_current->skipFirstSlice)
2406
+ {
2407
+ _current->skipFirstSlice = false;
2408
+ return _current->typeId;
2409
+ }
2410
+
2411
+ _stream->read(_current->sliceFlags);
2412
+
2413
+ //
2414
+ // Read the type ID, for value slices the type ID is encoded as a
2415
+ // string or as an index, for exceptions it's always encoded as a
2416
+ // string.
2417
+ //
2418
+ if(_current->sliceType == ValueSlice)
2419
+ {
2420
+ if((_current->sliceFlags & FLAG_HAS_TYPE_ID_COMPACT) == FLAG_HAS_TYPE_ID_COMPACT) // Must be checked first!
2421
+ {
2422
+ _current->typeId.clear();
2423
+ _current->compactId = _stream->readSize();
2424
+ }
2425
+ else if(_current->sliceFlags & (FLAG_HAS_TYPE_ID_STRING | FLAG_HAS_TYPE_ID_INDEX))
2426
+ {
2427
+ _current->typeId = readTypeId(_current->sliceFlags & FLAG_HAS_TYPE_ID_INDEX);
2428
+ _current->compactId = -1;
2429
+ }
2430
+ else
2431
+ {
2432
+ // Only the most derived slice encodes the type ID for the compact format.
2433
+ _current->typeId.clear();
2434
+ _current->compactId = -1;
2435
+ }
2436
+ }
2437
+ else
2438
+ {
2439
+ _stream->read(_current->typeId, false);
2440
+ }
2441
+
2442
+ //
2443
+ // Read the slice size if necessary.
2444
+ //
2445
+ if(_current->sliceFlags & FLAG_HAS_SLICE_SIZE)
2446
+ {
2447
+ _stream->read(_current->sliceSize);
2448
+ // A slice with optional members carries at least the 1-byte end marker in its body, so its
2449
+ // size (which includes the 4-byte size field) must be >= 5. We rely on this in skipSlice's
2450
+ // slice-preservation logic, which excludes the end marker by stepping back one byte.
2451
+ Ice::Int minSliceSize = (_current->sliceFlags & FLAG_HAS_OPTIONAL_MEMBERS) ? 5 : 4;
2452
+ if(_current->sliceSize < minSliceSize)
2453
+ {
2454
+ throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
2455
+ }
2456
+ }
2457
+ else
2458
+ {
2459
+ _current->sliceSize = 0;
2460
+ }
2461
+
2462
+ return _current->typeId;
2463
+ }
2464
+
2465
+ void
2466
+ Ice::InputStream::EncapsDecoder11::endSlice()
2467
+ {
2468
+ if(_current->sliceFlags & FLAG_HAS_OPTIONAL_MEMBERS)
2469
+ {
2470
+ _stream->skipOptionals();
2471
+ }
2472
+
2473
+ //
2474
+ // Read the indirect object table if one is present.
2475
+ //
2476
+ if(_current->sliceFlags & FLAG_HAS_INDIRECTION_TABLE)
2477
+ {
2478
+ IndexList indirectionTable(static_cast<size_t>(_stream->readAndCheckSeqSize(1)));
2479
+ for(IndexList::iterator p = indirectionTable.begin(); p != indirectionTable.end(); ++p)
2480
+ {
2481
+ *p = readInstance(_stream->readSize(), 0, 0);
2482
+ }
2483
+
2484
+ //
2485
+ // Sanity checks. If there are optional members, it's possible
2486
+ // that not all object references were read if they are from
2487
+ // unknown optional data members.
2488
+ //
2489
+ if(indirectionTable.empty())
2490
+ {
2491
+ throw MarshalException(__FILE__, __LINE__, "empty indirection table");
2492
+ }
2493
+ if(_current->indirectPatchList.empty() && !(_current->sliceFlags & FLAG_HAS_OPTIONAL_MEMBERS))
2494
+ {
2495
+ throw MarshalException(__FILE__, __LINE__, "no references to indirection table");
2496
+ }
2497
+
2498
+ //
2499
+ // Convert indirect references into direct references.
2500
+ //
2501
+ IndirectPatchList::iterator p;
2502
+ for(p = _current->indirectPatchList.begin(); p != _current->indirectPatchList.end(); ++p)
2503
+ {
2504
+ assert(p->index >= 0);
2505
+ if(p->index >= static_cast<Int>(indirectionTable.size()))
2506
+ {
2507
+ throw MarshalException(__FILE__, __LINE__, "indirection out of range");
2508
+ }
2509
+ addPatchEntry(indirectionTable[static_cast<size_t>(p->index)], p->patchFunc, p->patchAddr);
2510
+ }
2511
+ _current->indirectPatchList.clear();
2512
+ }
2513
+ }
2514
+
2515
+ void
2516
+ Ice::InputStream::EncapsDecoder11::skipSlice()
2517
+ {
2518
+ _stream->traceSkipSlice(_current->typeId, _current->sliceType);
2519
+
2520
+ Container::iterator start = _stream->i;
2521
+
2522
+ if(_current->sliceFlags & FLAG_HAS_SLICE_SIZE)
2523
+ {
2524
+ assert(_current->sliceSize >= 4);
2525
+ _stream->skip(static_cast<size_t>(_current->sliceSize) - sizeof(Int));
2526
+ }
2527
+ else
2528
+ {
2529
+ if(_current->sliceType == ValueSlice)
2530
+ {
2531
+ throw NoValueFactoryException(__FILE__, __LINE__,
2532
+ "no value factory found and compact format prevents "
2533
+ "slicing (the sender should use the sliced format instead)",
2534
+ _current->typeId);
2535
+ }
2536
+ else
2537
+ {
2538
+ throw UnknownUserException(__FILE__, __LINE__, _current->typeId);
2539
+ }
2540
+ }
2541
+
2542
+ //
2543
+ // Preserve this slice.
2544
+ //
2545
+ SliceInfoPtr info = ICE_MAKE_SHARED(SliceInfo);
2546
+ info->typeId = _current->typeId;
2547
+ info->compactId = _current->compactId;
2548
+ info->hasOptionalMembers = _current->sliceFlags & FLAG_HAS_OPTIONAL_MEMBERS;
2549
+ info->isLastSlice = _current->sliceFlags & FLAG_IS_LAST_SLICE;
2550
+ if(info->hasOptionalMembers)
2551
+ {
2552
+ //
2553
+ // Don't include the optional member end marker. It will be re-written by
2554
+ // endSlice when the sliced data is re-written.
2555
+ //
2556
+ vector<Byte>(start, _stream->i - 1).swap(info->bytes);
2557
+ }
2558
+ else
2559
+ {
2560
+ vector<Byte>(start, _stream->i).swap(info->bytes);
2561
+ }
2562
+
2563
+ _current->indirectionTables.push_back(IndexList());
2564
+
2565
+ //
2566
+ // Read the indirect object table. We read the instances or their
2567
+ // IDs if the instance is a reference to an already un-marhsaled
2568
+ // object.
2569
+ //
2570
+ // The SliceInfo object sequence is initialized only if
2571
+ // readSlicedData is called.
2572
+ //
2573
+ if(_current->sliceFlags & FLAG_HAS_INDIRECTION_TABLE)
2574
+ {
2575
+ IndexList& table = _current->indirectionTables.back();
2576
+ table.resize(static_cast<size_t>(_stream->readAndCheckSeqSize(1)));
2577
+ for(IndexList::iterator p = table.begin(); p != table.end(); ++p)
2578
+ {
2579
+ *p = readInstance(_stream->readSize(), 0, 0);
2580
+ }
2581
+ }
2582
+
2583
+ _current->slices.push_back(info);
2584
+ }
2585
+
2586
+ bool
2587
+ Ice::InputStream::EncapsDecoder11::readOptional(Ice::Int readTag, Ice::OptionalFormat expectedFormat)
2588
+ {
2589
+ if(!_current)
2590
+ {
2591
+ return _stream->readOptImpl(readTag, expectedFormat);
2592
+ }
2593
+ else if(_current->sliceFlags & FLAG_HAS_OPTIONAL_MEMBERS)
2594
+ {
2595
+ return _stream->readOptImpl(readTag, expectedFormat);
2596
+ }
2597
+ return false;
2598
+ }
2599
+
2600
+ Int
2601
+ Ice::InputStream::EncapsDecoder11::readInstance(Int index, PatchFunc patchFunc, void* patchAddr)
2602
+ {
2603
+ if(index <= 0)
2604
+ {
2605
+ throw MarshalException(__FILE__, __LINE__, "invalid class instance index");
2606
+ }
2607
+
2608
+ if(index > 1)
2609
+ {
2610
+ if(patchFunc)
2611
+ {
2612
+ addPatchEntry(index, patchFunc, patchAddr);
2613
+ }
2614
+ return index;
2615
+ }
2616
+
2617
+ push(ValueSlice);
2618
+
2619
+ //
2620
+ // Get the object ID before we start reading slices. If some
2621
+ // slices are skiped, the indirect object table are still read and
2622
+ // might read other instances.
2623
+ //
2624
+ index = ++_valueIdIndex;
2625
+
2626
+ //
2627
+ // Read the first slice header.
2628
+ //
2629
+ startSlice();
2630
+ const string mostDerivedId = _current->typeId;
2631
+ Ice::ValuePtr v;
2632
+ while(true)
2633
+ {
2634
+ if(_current->compactId >= 0)
2635
+ {
2636
+ //
2637
+ // Translate a compact (numeric) type ID into a string type ID.
2638
+ //
2639
+ _current->typeId = _stream->resolveCompactId(_current->compactId);
2640
+ if(_current->typeId.empty())
2641
+ {
2642
+ _current->typeId = IceInternal::factoryTable->getTypeId(_current->compactId);
2643
+ }
2644
+ }
2645
+
2646
+ if(!_current->typeId.empty())
2647
+ {
2648
+ v = newInstance(_current->typeId);
2649
+
2650
+ //
2651
+ // We found a factory, we get out of this loop.
2652
+ //
2653
+ if(v)
2654
+ {
2655
+ break;
2656
+ }
2657
+ }
2658
+
2659
+ //
2660
+ // If value slicing is disabled, stop unmarshaling.
2661
+ //
2662
+ if(!_sliceValues)
2663
+ {
2664
+ throw NoValueFactoryException(__FILE__, __LINE__, "no value factory found and value slicing is disabled",
2665
+ _current->typeId);
2666
+ }
2667
+
2668
+ //
2669
+ // Slice off what we don't understand.
2670
+ //
2671
+ skipSlice();
2672
+
2673
+ //
2674
+ // If this is the last slice, keep the object as an opaque UnknownSlicedValue.
2675
+ //
2676
+ if(_current->sliceFlags & FLAG_IS_LAST_SLICE)
2677
+ {
2678
+ //
2679
+ // Provide a factory with an opportunity to supply the object.
2680
+ // We pass the "::Ice::Object" ID to indicate that this is the
2681
+ // last chance to preserve the object.
2682
+ //
2683
+ v = newInstance(Object::ice_staticId());
2684
+ if(!v)
2685
+ {
2686
+ v = ICE_MAKE_SHARED(UnknownSlicedValue, mostDerivedId);
2687
+ }
2688
+
2689
+ break;
2690
+ }
2691
+
2692
+ startSlice(); // Read next Slice header for next iteration.
2693
+ }
2694
+
2695
+ if(++_classGraphDepth > _classGraphDepthMax)
2696
+ {
2697
+ throw MarshalException(__FILE__, __LINE__, "maximum class graph depth reached");
2698
+ }
2699
+
2700
+ //
2701
+ // Unmarshal the object.
2702
+ //
2703
+ unmarshal(index, v);
2704
+
2705
+ --_classGraphDepth;
2706
+
2707
+ if(!_current && !_patchMap.empty())
2708
+ {
2709
+ //
2710
+ // If any entries remain in the patch map, the sender has sent an index for an object, but failed
2711
+ // to supply the object.
2712
+ //
2713
+ throw MarshalException(__FILE__, __LINE__, "index for class received, but no instance");
2714
+ }
2715
+
2716
+ if(patchFunc)
2717
+ {
2718
+ patchFunc(patchAddr, v);
2719
+ }
2720
+ return index;
2721
+ }
2722
+
2723
+ SlicedDataPtr
2724
+ Ice::InputStream::EncapsDecoder11::readSlicedData()
2725
+ {
2726
+ if(_current->slices.empty()) // No preserved slices.
2727
+ {
2728
+ return 0;
2729
+ }
2730
+
2731
+ //
2732
+ // The indirectionTables member holds the indirection table for
2733
+ // each slice in slices.
2734
+ //
2735
+ assert(_current->slices.size() == _current->indirectionTables.size());
2736
+ for(SliceInfoSeq::size_type n = 0; n < _current->slices.size(); ++n)
2737
+ {
2738
+ //
2739
+ // We use the "instances" list in SliceInfo to hold references
2740
+ // to the target instances. Note that the instances might not have
2741
+ // been read yet in the case of a circular reference to an
2742
+ // enclosing instance.
2743
+ //
2744
+ const IndexList& table = _current->indirectionTables[n];
2745
+ vector<ValuePtr>& instances = _current->slices[n]->instances;
2746
+ instances.resize(table.size());
2747
+ IndexList::size_type j = 0;
2748
+ for(IndexList::const_iterator p = table.begin(); p != table.end(); ++p)
2749
+ {
2750
+ #ifdef ICE_CPP11_MAPPING
2751
+ addPatchEntry(*p, &patchHandle<Value>, &instances[j++]);
2752
+ #else
2753
+ addPatchEntry(*p, &patchHandle<Object>, &instances[j++]);
2754
+ #endif
2755
+ }
2756
+ }
2757
+ return ICE_MAKE_SHARED(SlicedData, _current->slices);
2758
+ }