javonet-nodejs-sdk 2.5.13 → 2.5.14
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.
- package/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- package/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- package/Binaries/Native/Linux/ARM64/version.txt +1 -1
- package/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +30 -30
- package/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/X64/libUtils.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
- package/Binaries/Native/Linux/X64/version.txt +1 -1
- package/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- package/Binaries/Native/MacOs/X64/version.txt +1 -1
- package/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- package/Binaries/Native/Windows/ARM64/version.txt +0 -0
- package/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/X64/Utils.dll +0 -0
- package/Binaries/Native/Windows/X64/version.txt +1 -1
- package/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/X86/Utils.dll +0 -0
- package/Binaries/Native/Windows/X86/version.txt +1 -1
- package/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- package/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- package/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +4 -0
- package/Binaries/Nodejs/lib/core/protocol/CommandDeserializer.js +30 -14
- package/Binaries/Nodejs/lib/core/protocol/CommandSerializer.js +38 -25
- package/Binaries/Nodejs/lib/core/protocol/TypeSerializer.js +1 -1
- package/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +51 -46
- package/Binaries/Nodejs/lib/sdk/InvocationContext.js +3 -5
- package/Binaries/Nodejs/lib/sdk/RuntimeContext.js +2 -4
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/Path/Tiny.pm +74 -15
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Attribute-Util-1.07/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.50/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-0.25/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-XS-0.10/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Clone-0.47/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-Cmp-0.010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-OptList-0.114/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-UUID-1.227/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-GlobalDestruction-0.14/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-OverloadInfo-0.007/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.05/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Dist-CheckConflicts-0.11/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Eval-Closure-0.14/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Config-0.010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Helpers-0.028/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-InstallPaths-0.014/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-CheckLib-0.31/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-Platypus-2.10/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/File-Which-1.27/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/IPC-System-Simple-1.30/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/MRO-Compat-0.15/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-0.4234/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-Tiny-0.051/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Implementation-0.09/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-0.016/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-Conflicts-0.003/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Moose-2.2207/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Nice-Try-v1.3.15/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-1.281/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-XS-0.910/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-DeprecationManager-0.18/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-0.40/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-XS-0.30/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Params-Util-1.102/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/{Path-Tiny-0.146 → Path-Tiny-0.148}/MYMETA.json +10 -6
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Path-Tiny-0.148/install.json +1 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Safe-Isa-1.000010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-List-Utils-1.68/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scope-Guard-0.21/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-0.991/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-Progressive-0.001013/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Install-0.929/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Task-Weaken-1.06/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Fatal-0.017/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Try-Tiny-0.32/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Want-0.29/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/YAML-PP-v0.39.0/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/aliased-0.34/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/autobox-v3.0.2/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +83 -83
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Attribute-Util-1.07/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-Cmp-0.010/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-UUID-1.227/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Nice-Try-v1.3.15/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-1.281/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-XS-0.910/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Safe-Isa-1.000010/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Test-Fatal-0.017/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Want-0.29/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/YAML-PP-v0.39.0/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/autobox-v3.0.2/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +25 -25
- package/Binaries/Python/javonet/core/interpreter/Interpreter.py +1 -2
- package/Binaries/Python/javonet/core/protocol/CommandDeserializer.py +24 -10
- package/Binaries/Python/javonet/core/protocol/CommandSerializer.py +18 -17
- package/Binaries/Python/javonet/core/receiver/Receiver.py +1 -0
- package/Binaries/Python/javonet/utils/Command.py +1 -1
- package/Binaries/Python/javonet/utils/exception/ExceptionThrower.py +43 -39
- package/Binaries/Ruby/Linux/X64/core/protocol/command_deserializer.rb +40 -33
- package/Binaries/Ruby/Linux/X64/core/protocol/command_serializer.rb +12 -19
- package/Binaries/Ruby/MacOs/X64/core/protocol/command_deserializer.rb +40 -33
- package/Binaries/Ruby/MacOs/X64/core/protocol/command_serializer.rb +12 -19
- package/Binaries/Ruby/Windows/X64/core/protocol/command_deserializer.rb +40 -33
- package/Binaries/Ruby/Windows/X64/core/protocol/command_serializer.rb +12 -19
- package/Binaries/version.txt +1 -1
- package/dist/Javonet.d.ts +34 -47
- package/dist/lib/core/interpreter/Interpreter.js +4 -0
- package/dist/lib/core/protocol/CommandDeserializer.js +30 -14
- package/dist/lib/core/protocol/CommandSerializer.js +38 -25
- package/dist/lib/core/protocol/TypeSerializer.js +1 -1
- package/dist/lib/core/webSocketClient/WebSocketClient.js +51 -46
- package/dist/lib/sdk/InvocationContext.js +3 -5
- package/dist/lib/sdk/RuntimeContext.js +2 -4
- package/lib/core/webSocketClient/WebSocketClient.js +51 -46
- package/package.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Path-Tiny-0.146/install.json +0 -1
|
@@ -2,18 +2,19 @@ require_relative 'type_deserializer'
|
|
|
2
2
|
require_relative '../../utils/type'
|
|
3
3
|
require_relative '../../utils/command'
|
|
4
4
|
require_relative '../../utils/string_encoding_mode'
|
|
5
|
+
require_relative '../../utils/command_type'
|
|
6
|
+
require_relative '../../utils/runtime_name'
|
|
5
7
|
|
|
6
8
|
class CommandDeserializer
|
|
7
|
-
|
|
8
9
|
def initialize(buffer)
|
|
9
10
|
@buffer = buffer
|
|
10
|
-
@
|
|
11
|
+
@buffer_len = buffer.length
|
|
11
12
|
@command = Command.new(buffer[0], buffer[10], [])
|
|
12
13
|
@position = 11
|
|
13
14
|
end
|
|
14
15
|
|
|
15
16
|
def is_at_end
|
|
16
|
-
@position == @
|
|
17
|
+
@position == @buffer_len
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
def deserialize
|
|
@@ -23,12 +24,7 @@ class CommandDeserializer
|
|
|
23
24
|
@command
|
|
24
25
|
end
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
# size = len(bytes_to_copy) - elements_to_skip
|
|
28
|
-
# new_byte_array = bytes_to_copy[size]
|
|
29
|
-
# return new_byte_array
|
|
30
|
-
|
|
31
|
-
def read_object(type_num)
|
|
27
|
+
def read_object(type_num)
|
|
32
28
|
case type_num
|
|
33
29
|
when Type::COMMAND
|
|
34
30
|
return self.read_command
|
|
@@ -65,19 +61,30 @@ class CommandDeserializer
|
|
|
65
61
|
runtime = @buffer[p + 5]
|
|
66
62
|
command_type = @buffer[p + 6]
|
|
67
63
|
@position += 7
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
64
|
+
payload = number_of_elements_in_payload.times.map { read_object(@buffer[@position]) }
|
|
65
|
+
Command.new(runtime, command_type, payload)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# old implementation
|
|
69
|
+
# def read_command
|
|
70
|
+
# p = @position
|
|
71
|
+
# number_of_elements_in_payload = TypeDeserializer.deserialize_int(@buffer[p + 1..p + 4])
|
|
72
|
+
# runtime = @buffer[p + 5]
|
|
73
|
+
# command_type = @buffer[p + 6]
|
|
74
|
+
# @position += 7
|
|
75
|
+
# return_command = Command.new(runtime, command_type, [])
|
|
76
|
+
# read_command_recursively(number_of_elements_in_payload, return_command)
|
|
77
|
+
# end
|
|
78
|
+
#
|
|
79
|
+
# def read_command_recursively(number_of_elements_in_payload_left, cmd)
|
|
80
|
+
# if number_of_elements_in_payload_left == 0
|
|
81
|
+
# cmd
|
|
82
|
+
# else
|
|
83
|
+
# p = @position
|
|
84
|
+
# cmd = cmd.add_arg_to_payload(self.read_object(@buffer[p]))
|
|
85
|
+
# read_command_recursively(number_of_elements_in_payload_left - 1, cmd)
|
|
86
|
+
# end
|
|
87
|
+
# end
|
|
81
88
|
|
|
82
89
|
def read_string
|
|
83
90
|
p = @position
|
|
@@ -86,7 +93,7 @@ class CommandDeserializer
|
|
|
86
93
|
@position += 6
|
|
87
94
|
p = @position
|
|
88
95
|
@position += size
|
|
89
|
-
TypeDeserializer.deserialize_string(string_encoding_mode, @buffer[p
|
|
96
|
+
TypeDeserializer.deserialize_string(string_encoding_mode, @buffer[p...p + size])
|
|
90
97
|
end
|
|
91
98
|
|
|
92
99
|
def read_int
|
|
@@ -94,7 +101,7 @@ class CommandDeserializer
|
|
|
94
101
|
@position += 2
|
|
95
102
|
p = @position
|
|
96
103
|
@position += size
|
|
97
|
-
TypeDeserializer.deserialize_int(@buffer[p
|
|
104
|
+
TypeDeserializer.deserialize_int(@buffer[p...p + size])
|
|
98
105
|
end
|
|
99
106
|
|
|
100
107
|
def read_bool
|
|
@@ -102,7 +109,7 @@ class CommandDeserializer
|
|
|
102
109
|
@position += 2
|
|
103
110
|
p = @position
|
|
104
111
|
@position += size
|
|
105
|
-
TypeDeserializer.deserialize_bool(@buffer[p
|
|
112
|
+
TypeDeserializer.deserialize_bool(@buffer[p...p + size])
|
|
106
113
|
end
|
|
107
114
|
|
|
108
115
|
def read_float
|
|
@@ -110,7 +117,7 @@ class CommandDeserializer
|
|
|
110
117
|
@position += 2
|
|
111
118
|
p = @position
|
|
112
119
|
@position += size
|
|
113
|
-
TypeDeserializer.deserialize_float(@buffer[p
|
|
120
|
+
TypeDeserializer.deserialize_float(@buffer[p...p + size])
|
|
114
121
|
end
|
|
115
122
|
|
|
116
123
|
def read_byte
|
|
@@ -118,7 +125,7 @@ class CommandDeserializer
|
|
|
118
125
|
@position += 2
|
|
119
126
|
p = @position
|
|
120
127
|
@position += size
|
|
121
|
-
TypeDeserializer.deserialize_byte(@buffer[p
|
|
128
|
+
TypeDeserializer.deserialize_byte(@buffer[p...p + size])
|
|
122
129
|
end
|
|
123
130
|
|
|
124
131
|
def read_char
|
|
@@ -126,7 +133,7 @@ class CommandDeserializer
|
|
|
126
133
|
@position += 2
|
|
127
134
|
p = @position
|
|
128
135
|
@position += size
|
|
129
|
-
TypeDeserializer.deserialize_char(@buffer[p
|
|
136
|
+
TypeDeserializer.deserialize_char(@buffer[p...p + size])
|
|
130
137
|
end
|
|
131
138
|
|
|
132
139
|
def read_longlong
|
|
@@ -134,7 +141,7 @@ class CommandDeserializer
|
|
|
134
141
|
@position += 2
|
|
135
142
|
p = @position
|
|
136
143
|
@position += size
|
|
137
|
-
TypeDeserializer.deserialize_longlong(@buffer[p
|
|
144
|
+
TypeDeserializer.deserialize_longlong(@buffer[p...p + size])
|
|
138
145
|
end
|
|
139
146
|
|
|
140
147
|
def read_double
|
|
@@ -142,7 +149,7 @@ class CommandDeserializer
|
|
|
142
149
|
@position += 2
|
|
143
150
|
p = @position
|
|
144
151
|
@position += size
|
|
145
|
-
TypeDeserializer.deserialize_double(@buffer[p
|
|
152
|
+
TypeDeserializer.deserialize_double(@buffer[p...p + size])
|
|
146
153
|
end
|
|
147
154
|
|
|
148
155
|
def read_ullong
|
|
@@ -150,7 +157,7 @@ class CommandDeserializer
|
|
|
150
157
|
@position += 2
|
|
151
158
|
p = @position
|
|
152
159
|
@position += size
|
|
153
|
-
TypeDeserializer.deserialize_ullong(@buffer[p
|
|
160
|
+
TypeDeserializer.deserialize_ullong(@buffer[p...p + size])
|
|
154
161
|
end
|
|
155
162
|
|
|
156
163
|
def read_uint
|
|
@@ -158,7 +165,7 @@ class CommandDeserializer
|
|
|
158
165
|
@position += 2
|
|
159
166
|
p = @position
|
|
160
167
|
@position += size
|
|
161
|
-
TypeDeserializer.deserialize_uint(@buffer[p
|
|
168
|
+
TypeDeserializer.deserialize_uint(@buffer[p...p + size])
|
|
162
169
|
end
|
|
163
170
|
|
|
164
171
|
def read_nil
|
|
@@ -166,6 +173,6 @@ class CommandDeserializer
|
|
|
166
173
|
@position += 2
|
|
167
174
|
p = @position
|
|
168
175
|
@position += size
|
|
169
|
-
TypeDeserializer.deserialize_nil(@buffer[p
|
|
176
|
+
TypeDeserializer.deserialize_nil(@buffer[p...p + size])
|
|
170
177
|
end
|
|
171
178
|
end
|
|
@@ -4,34 +4,27 @@ require_relative '../../utils/runtime_name'
|
|
|
4
4
|
require_relative '../../utils/tcp_connection_data'
|
|
5
5
|
|
|
6
6
|
class CommandSerializer
|
|
7
|
-
def initialize
|
|
8
|
-
@buffer = []
|
|
9
|
-
end
|
|
10
|
-
|
|
11
7
|
def serialize(root_command, connection_data = nil, runtime_version = 0)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
buffer = ''.dup
|
|
9
|
+
buffer << [root_command.runtime_name, runtime_version].pack('C*')
|
|
10
|
+
if connection_data
|
|
11
|
+
buffer << connection_data.serialize_connection_data.pack('C*')
|
|
15
12
|
else
|
|
16
|
-
|
|
13
|
+
buffer << [0, 0, 0, 0, 0, 0, 0].pack('C*')
|
|
17
14
|
end
|
|
18
|
-
|
|
19
|
-
serialize_recursively(root_command)
|
|
20
|
-
|
|
15
|
+
buffer << [RuntimeName::RUBY, root_command.command_type].pack('C*')
|
|
16
|
+
serialize_recursively(root_command, buffer)
|
|
17
|
+
buffer.bytes
|
|
21
18
|
end
|
|
22
19
|
|
|
23
|
-
def serialize_recursively(command)
|
|
20
|
+
def serialize_recursively(command, buffer)
|
|
24
21
|
command.payload.each do |item|
|
|
25
22
|
if item.is_a?(Command)
|
|
26
|
-
|
|
27
|
-
serialize_recursively(item)
|
|
23
|
+
buffer << TypeSerializer.serialize_command(item).pack('C*')
|
|
24
|
+
serialize_recursively(item, buffer)
|
|
28
25
|
else
|
|
29
|
-
|
|
26
|
+
buffer << TypeSerializer.serialize_primitive(item).pack('C*')
|
|
30
27
|
end
|
|
31
28
|
end
|
|
32
29
|
end
|
|
33
|
-
|
|
34
|
-
def insert_into_buffer(arguments)
|
|
35
|
-
@buffer += arguments
|
|
36
|
-
end
|
|
37
30
|
end
|
|
@@ -2,18 +2,19 @@ require_relative 'type_deserializer'
|
|
|
2
2
|
require_relative '../../utils/type'
|
|
3
3
|
require_relative '../../utils/command'
|
|
4
4
|
require_relative '../../utils/string_encoding_mode'
|
|
5
|
+
require_relative '../../utils/command_type'
|
|
6
|
+
require_relative '../../utils/runtime_name'
|
|
5
7
|
|
|
6
8
|
class CommandDeserializer
|
|
7
|
-
|
|
8
9
|
def initialize(buffer)
|
|
9
10
|
@buffer = buffer
|
|
10
|
-
@
|
|
11
|
+
@buffer_len = buffer.length
|
|
11
12
|
@command = Command.new(buffer[0], buffer[10], [])
|
|
12
13
|
@position = 11
|
|
13
14
|
end
|
|
14
15
|
|
|
15
16
|
def is_at_end
|
|
16
|
-
@position == @
|
|
17
|
+
@position == @buffer_len
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
def deserialize
|
|
@@ -23,12 +24,7 @@ class CommandDeserializer
|
|
|
23
24
|
@command
|
|
24
25
|
end
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
# size = len(bytes_to_copy) - elements_to_skip
|
|
28
|
-
# new_byte_array = bytes_to_copy[size]
|
|
29
|
-
# return new_byte_array
|
|
30
|
-
|
|
31
|
-
def read_object(type_num)
|
|
27
|
+
def read_object(type_num)
|
|
32
28
|
case type_num
|
|
33
29
|
when Type::COMMAND
|
|
34
30
|
return self.read_command
|
|
@@ -65,19 +61,30 @@ class CommandDeserializer
|
|
|
65
61
|
runtime = @buffer[p + 5]
|
|
66
62
|
command_type = @buffer[p + 6]
|
|
67
63
|
@position += 7
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
64
|
+
payload = number_of_elements_in_payload.times.map { read_object(@buffer[@position]) }
|
|
65
|
+
Command.new(runtime, command_type, payload)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# old implementation
|
|
69
|
+
# def read_command
|
|
70
|
+
# p = @position
|
|
71
|
+
# number_of_elements_in_payload = TypeDeserializer.deserialize_int(@buffer[p + 1..p + 4])
|
|
72
|
+
# runtime = @buffer[p + 5]
|
|
73
|
+
# command_type = @buffer[p + 6]
|
|
74
|
+
# @position += 7
|
|
75
|
+
# return_command = Command.new(runtime, command_type, [])
|
|
76
|
+
# read_command_recursively(number_of_elements_in_payload, return_command)
|
|
77
|
+
# end
|
|
78
|
+
#
|
|
79
|
+
# def read_command_recursively(number_of_elements_in_payload_left, cmd)
|
|
80
|
+
# if number_of_elements_in_payload_left == 0
|
|
81
|
+
# cmd
|
|
82
|
+
# else
|
|
83
|
+
# p = @position
|
|
84
|
+
# cmd = cmd.add_arg_to_payload(self.read_object(@buffer[p]))
|
|
85
|
+
# read_command_recursively(number_of_elements_in_payload_left - 1, cmd)
|
|
86
|
+
# end
|
|
87
|
+
# end
|
|
81
88
|
|
|
82
89
|
def read_string
|
|
83
90
|
p = @position
|
|
@@ -86,7 +93,7 @@ class CommandDeserializer
|
|
|
86
93
|
@position += 6
|
|
87
94
|
p = @position
|
|
88
95
|
@position += size
|
|
89
|
-
TypeDeserializer.deserialize_string(string_encoding_mode, @buffer[p
|
|
96
|
+
TypeDeserializer.deserialize_string(string_encoding_mode, @buffer[p...p + size])
|
|
90
97
|
end
|
|
91
98
|
|
|
92
99
|
def read_int
|
|
@@ -94,7 +101,7 @@ class CommandDeserializer
|
|
|
94
101
|
@position += 2
|
|
95
102
|
p = @position
|
|
96
103
|
@position += size
|
|
97
|
-
TypeDeserializer.deserialize_int(@buffer[p
|
|
104
|
+
TypeDeserializer.deserialize_int(@buffer[p...p + size])
|
|
98
105
|
end
|
|
99
106
|
|
|
100
107
|
def read_bool
|
|
@@ -102,7 +109,7 @@ class CommandDeserializer
|
|
|
102
109
|
@position += 2
|
|
103
110
|
p = @position
|
|
104
111
|
@position += size
|
|
105
|
-
TypeDeserializer.deserialize_bool(@buffer[p
|
|
112
|
+
TypeDeserializer.deserialize_bool(@buffer[p...p + size])
|
|
106
113
|
end
|
|
107
114
|
|
|
108
115
|
def read_float
|
|
@@ -110,7 +117,7 @@ class CommandDeserializer
|
|
|
110
117
|
@position += 2
|
|
111
118
|
p = @position
|
|
112
119
|
@position += size
|
|
113
|
-
TypeDeserializer.deserialize_float(@buffer[p
|
|
120
|
+
TypeDeserializer.deserialize_float(@buffer[p...p + size])
|
|
114
121
|
end
|
|
115
122
|
|
|
116
123
|
def read_byte
|
|
@@ -118,7 +125,7 @@ class CommandDeserializer
|
|
|
118
125
|
@position += 2
|
|
119
126
|
p = @position
|
|
120
127
|
@position += size
|
|
121
|
-
TypeDeserializer.deserialize_byte(@buffer[p
|
|
128
|
+
TypeDeserializer.deserialize_byte(@buffer[p...p + size])
|
|
122
129
|
end
|
|
123
130
|
|
|
124
131
|
def read_char
|
|
@@ -126,7 +133,7 @@ class CommandDeserializer
|
|
|
126
133
|
@position += 2
|
|
127
134
|
p = @position
|
|
128
135
|
@position += size
|
|
129
|
-
TypeDeserializer.deserialize_char(@buffer[p
|
|
136
|
+
TypeDeserializer.deserialize_char(@buffer[p...p + size])
|
|
130
137
|
end
|
|
131
138
|
|
|
132
139
|
def read_longlong
|
|
@@ -134,7 +141,7 @@ class CommandDeserializer
|
|
|
134
141
|
@position += 2
|
|
135
142
|
p = @position
|
|
136
143
|
@position += size
|
|
137
|
-
TypeDeserializer.deserialize_longlong(@buffer[p
|
|
144
|
+
TypeDeserializer.deserialize_longlong(@buffer[p...p + size])
|
|
138
145
|
end
|
|
139
146
|
|
|
140
147
|
def read_double
|
|
@@ -142,7 +149,7 @@ class CommandDeserializer
|
|
|
142
149
|
@position += 2
|
|
143
150
|
p = @position
|
|
144
151
|
@position += size
|
|
145
|
-
TypeDeserializer.deserialize_double(@buffer[p
|
|
152
|
+
TypeDeserializer.deserialize_double(@buffer[p...p + size])
|
|
146
153
|
end
|
|
147
154
|
|
|
148
155
|
def read_ullong
|
|
@@ -150,7 +157,7 @@ class CommandDeserializer
|
|
|
150
157
|
@position += 2
|
|
151
158
|
p = @position
|
|
152
159
|
@position += size
|
|
153
|
-
TypeDeserializer.deserialize_ullong(@buffer[p
|
|
160
|
+
TypeDeserializer.deserialize_ullong(@buffer[p...p + size])
|
|
154
161
|
end
|
|
155
162
|
|
|
156
163
|
def read_uint
|
|
@@ -158,7 +165,7 @@ class CommandDeserializer
|
|
|
158
165
|
@position += 2
|
|
159
166
|
p = @position
|
|
160
167
|
@position += size
|
|
161
|
-
TypeDeserializer.deserialize_uint(@buffer[p
|
|
168
|
+
TypeDeserializer.deserialize_uint(@buffer[p...p + size])
|
|
162
169
|
end
|
|
163
170
|
|
|
164
171
|
def read_nil
|
|
@@ -166,6 +173,6 @@ class CommandDeserializer
|
|
|
166
173
|
@position += 2
|
|
167
174
|
p = @position
|
|
168
175
|
@position += size
|
|
169
|
-
TypeDeserializer.deserialize_nil(@buffer[p
|
|
176
|
+
TypeDeserializer.deserialize_nil(@buffer[p...p + size])
|
|
170
177
|
end
|
|
171
178
|
end
|
|
@@ -4,34 +4,27 @@ require_relative '../../utils/runtime_name'
|
|
|
4
4
|
require_relative '../../utils/tcp_connection_data'
|
|
5
5
|
|
|
6
6
|
class CommandSerializer
|
|
7
|
-
def initialize
|
|
8
|
-
@buffer = []
|
|
9
|
-
end
|
|
10
|
-
|
|
11
7
|
def serialize(root_command, connection_data = nil, runtime_version = 0)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
buffer = ''.dup
|
|
9
|
+
buffer << [root_command.runtime_name, runtime_version].pack('C*')
|
|
10
|
+
if connection_data
|
|
11
|
+
buffer << connection_data.serialize_connection_data.pack('C*')
|
|
15
12
|
else
|
|
16
|
-
|
|
13
|
+
buffer << [0, 0, 0, 0, 0, 0, 0].pack('C*')
|
|
17
14
|
end
|
|
18
|
-
|
|
19
|
-
serialize_recursively(root_command)
|
|
20
|
-
|
|
15
|
+
buffer << [RuntimeName::RUBY, root_command.command_type].pack('C*')
|
|
16
|
+
serialize_recursively(root_command, buffer)
|
|
17
|
+
buffer.bytes
|
|
21
18
|
end
|
|
22
19
|
|
|
23
|
-
def serialize_recursively(command)
|
|
20
|
+
def serialize_recursively(command, buffer)
|
|
24
21
|
command.payload.each do |item|
|
|
25
22
|
if item.is_a?(Command)
|
|
26
|
-
|
|
27
|
-
serialize_recursively(item)
|
|
23
|
+
buffer << TypeSerializer.serialize_command(item).pack('C*')
|
|
24
|
+
serialize_recursively(item, buffer)
|
|
28
25
|
else
|
|
29
|
-
|
|
26
|
+
buffer << TypeSerializer.serialize_primitive(item).pack('C*')
|
|
30
27
|
end
|
|
31
28
|
end
|
|
32
29
|
end
|
|
33
|
-
|
|
34
|
-
def insert_into_buffer(arguments)
|
|
35
|
-
@buffer += arguments
|
|
36
|
-
end
|
|
37
30
|
end
|
|
@@ -2,18 +2,19 @@ require_relative 'type_deserializer'
|
|
|
2
2
|
require_relative '../../utils/type'
|
|
3
3
|
require_relative '../../utils/command'
|
|
4
4
|
require_relative '../../utils/string_encoding_mode'
|
|
5
|
+
require_relative '../../utils/command_type'
|
|
6
|
+
require_relative '../../utils/runtime_name'
|
|
5
7
|
|
|
6
8
|
class CommandDeserializer
|
|
7
|
-
|
|
8
9
|
def initialize(buffer)
|
|
9
10
|
@buffer = buffer
|
|
10
|
-
@
|
|
11
|
+
@buffer_len = buffer.length
|
|
11
12
|
@command = Command.new(buffer[0], buffer[10], [])
|
|
12
13
|
@position = 11
|
|
13
14
|
end
|
|
14
15
|
|
|
15
16
|
def is_at_end
|
|
16
|
-
@position == @
|
|
17
|
+
@position == @buffer_len
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
def deserialize
|
|
@@ -23,12 +24,7 @@ class CommandDeserializer
|
|
|
23
24
|
@command
|
|
24
25
|
end
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
# size = len(bytes_to_copy) - elements_to_skip
|
|
28
|
-
# new_byte_array = bytes_to_copy[size]
|
|
29
|
-
# return new_byte_array
|
|
30
|
-
|
|
31
|
-
def read_object(type_num)
|
|
27
|
+
def read_object(type_num)
|
|
32
28
|
case type_num
|
|
33
29
|
when Type::COMMAND
|
|
34
30
|
return self.read_command
|
|
@@ -65,19 +61,30 @@ class CommandDeserializer
|
|
|
65
61
|
runtime = @buffer[p + 5]
|
|
66
62
|
command_type = @buffer[p + 6]
|
|
67
63
|
@position += 7
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
64
|
+
payload = number_of_elements_in_payload.times.map { read_object(@buffer[@position]) }
|
|
65
|
+
Command.new(runtime, command_type, payload)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# old implementation
|
|
69
|
+
# def read_command
|
|
70
|
+
# p = @position
|
|
71
|
+
# number_of_elements_in_payload = TypeDeserializer.deserialize_int(@buffer[p + 1..p + 4])
|
|
72
|
+
# runtime = @buffer[p + 5]
|
|
73
|
+
# command_type = @buffer[p + 6]
|
|
74
|
+
# @position += 7
|
|
75
|
+
# return_command = Command.new(runtime, command_type, [])
|
|
76
|
+
# read_command_recursively(number_of_elements_in_payload, return_command)
|
|
77
|
+
# end
|
|
78
|
+
#
|
|
79
|
+
# def read_command_recursively(number_of_elements_in_payload_left, cmd)
|
|
80
|
+
# if number_of_elements_in_payload_left == 0
|
|
81
|
+
# cmd
|
|
82
|
+
# else
|
|
83
|
+
# p = @position
|
|
84
|
+
# cmd = cmd.add_arg_to_payload(self.read_object(@buffer[p]))
|
|
85
|
+
# read_command_recursively(number_of_elements_in_payload_left - 1, cmd)
|
|
86
|
+
# end
|
|
87
|
+
# end
|
|
81
88
|
|
|
82
89
|
def read_string
|
|
83
90
|
p = @position
|
|
@@ -86,7 +93,7 @@ class CommandDeserializer
|
|
|
86
93
|
@position += 6
|
|
87
94
|
p = @position
|
|
88
95
|
@position += size
|
|
89
|
-
TypeDeserializer.deserialize_string(string_encoding_mode, @buffer[p
|
|
96
|
+
TypeDeserializer.deserialize_string(string_encoding_mode, @buffer[p...p + size])
|
|
90
97
|
end
|
|
91
98
|
|
|
92
99
|
def read_int
|
|
@@ -94,7 +101,7 @@ class CommandDeserializer
|
|
|
94
101
|
@position += 2
|
|
95
102
|
p = @position
|
|
96
103
|
@position += size
|
|
97
|
-
TypeDeserializer.deserialize_int(@buffer[p
|
|
104
|
+
TypeDeserializer.deserialize_int(@buffer[p...p + size])
|
|
98
105
|
end
|
|
99
106
|
|
|
100
107
|
def read_bool
|
|
@@ -102,7 +109,7 @@ class CommandDeserializer
|
|
|
102
109
|
@position += 2
|
|
103
110
|
p = @position
|
|
104
111
|
@position += size
|
|
105
|
-
TypeDeserializer.deserialize_bool(@buffer[p
|
|
112
|
+
TypeDeserializer.deserialize_bool(@buffer[p...p + size])
|
|
106
113
|
end
|
|
107
114
|
|
|
108
115
|
def read_float
|
|
@@ -110,7 +117,7 @@ class CommandDeserializer
|
|
|
110
117
|
@position += 2
|
|
111
118
|
p = @position
|
|
112
119
|
@position += size
|
|
113
|
-
TypeDeserializer.deserialize_float(@buffer[p
|
|
120
|
+
TypeDeserializer.deserialize_float(@buffer[p...p + size])
|
|
114
121
|
end
|
|
115
122
|
|
|
116
123
|
def read_byte
|
|
@@ -118,7 +125,7 @@ class CommandDeserializer
|
|
|
118
125
|
@position += 2
|
|
119
126
|
p = @position
|
|
120
127
|
@position += size
|
|
121
|
-
TypeDeserializer.deserialize_byte(@buffer[p
|
|
128
|
+
TypeDeserializer.deserialize_byte(@buffer[p...p + size])
|
|
122
129
|
end
|
|
123
130
|
|
|
124
131
|
def read_char
|
|
@@ -126,7 +133,7 @@ class CommandDeserializer
|
|
|
126
133
|
@position += 2
|
|
127
134
|
p = @position
|
|
128
135
|
@position += size
|
|
129
|
-
TypeDeserializer.deserialize_char(@buffer[p
|
|
136
|
+
TypeDeserializer.deserialize_char(@buffer[p...p + size])
|
|
130
137
|
end
|
|
131
138
|
|
|
132
139
|
def read_longlong
|
|
@@ -134,7 +141,7 @@ class CommandDeserializer
|
|
|
134
141
|
@position += 2
|
|
135
142
|
p = @position
|
|
136
143
|
@position += size
|
|
137
|
-
TypeDeserializer.deserialize_longlong(@buffer[p
|
|
144
|
+
TypeDeserializer.deserialize_longlong(@buffer[p...p + size])
|
|
138
145
|
end
|
|
139
146
|
|
|
140
147
|
def read_double
|
|
@@ -142,7 +149,7 @@ class CommandDeserializer
|
|
|
142
149
|
@position += 2
|
|
143
150
|
p = @position
|
|
144
151
|
@position += size
|
|
145
|
-
TypeDeserializer.deserialize_double(@buffer[p
|
|
152
|
+
TypeDeserializer.deserialize_double(@buffer[p...p + size])
|
|
146
153
|
end
|
|
147
154
|
|
|
148
155
|
def read_ullong
|
|
@@ -150,7 +157,7 @@ class CommandDeserializer
|
|
|
150
157
|
@position += 2
|
|
151
158
|
p = @position
|
|
152
159
|
@position += size
|
|
153
|
-
TypeDeserializer.deserialize_ullong(@buffer[p
|
|
160
|
+
TypeDeserializer.deserialize_ullong(@buffer[p...p + size])
|
|
154
161
|
end
|
|
155
162
|
|
|
156
163
|
def read_uint
|
|
@@ -158,7 +165,7 @@ class CommandDeserializer
|
|
|
158
165
|
@position += 2
|
|
159
166
|
p = @position
|
|
160
167
|
@position += size
|
|
161
|
-
TypeDeserializer.deserialize_uint(@buffer[p
|
|
168
|
+
TypeDeserializer.deserialize_uint(@buffer[p...p + size])
|
|
162
169
|
end
|
|
163
170
|
|
|
164
171
|
def read_nil
|
|
@@ -166,6 +173,6 @@ class CommandDeserializer
|
|
|
166
173
|
@position += 2
|
|
167
174
|
p = @position
|
|
168
175
|
@position += size
|
|
169
|
-
TypeDeserializer.deserialize_nil(@buffer[p
|
|
176
|
+
TypeDeserializer.deserialize_nil(@buffer[p...p + size])
|
|
170
177
|
end
|
|
171
178
|
end
|
|
@@ -4,34 +4,27 @@ require_relative '../../utils/runtime_name'
|
|
|
4
4
|
require_relative '../../utils/tcp_connection_data'
|
|
5
5
|
|
|
6
6
|
class CommandSerializer
|
|
7
|
-
def initialize
|
|
8
|
-
@buffer = []
|
|
9
|
-
end
|
|
10
|
-
|
|
11
7
|
def serialize(root_command, connection_data = nil, runtime_version = 0)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
buffer = ''.dup
|
|
9
|
+
buffer << [root_command.runtime_name, runtime_version].pack('C*')
|
|
10
|
+
if connection_data
|
|
11
|
+
buffer << connection_data.serialize_connection_data.pack('C*')
|
|
15
12
|
else
|
|
16
|
-
|
|
13
|
+
buffer << [0, 0, 0, 0, 0, 0, 0].pack('C*')
|
|
17
14
|
end
|
|
18
|
-
|
|
19
|
-
serialize_recursively(root_command)
|
|
20
|
-
|
|
15
|
+
buffer << [RuntimeName::RUBY, root_command.command_type].pack('C*')
|
|
16
|
+
serialize_recursively(root_command, buffer)
|
|
17
|
+
buffer.bytes
|
|
21
18
|
end
|
|
22
19
|
|
|
23
|
-
def serialize_recursively(command)
|
|
20
|
+
def serialize_recursively(command, buffer)
|
|
24
21
|
command.payload.each do |item|
|
|
25
22
|
if item.is_a?(Command)
|
|
26
|
-
|
|
27
|
-
serialize_recursively(item)
|
|
23
|
+
buffer << TypeSerializer.serialize_command(item).pack('C*')
|
|
24
|
+
serialize_recursively(item, buffer)
|
|
28
25
|
else
|
|
29
|
-
|
|
26
|
+
buffer << TypeSerializer.serialize_primitive(item).pack('C*')
|
|
30
27
|
end
|
|
31
28
|
end
|
|
32
29
|
end
|
|
33
|
-
|
|
34
|
-
def insert_into_buffer(arguments)
|
|
35
|
-
@buffer += arguments
|
|
36
|
-
end
|
|
37
30
|
end
|
package/Binaries/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
1
|
+
2.5.14
|