Constructor
new SalmonNativeTransformer()
Methods
(async) decryptData(srcBuffer, srcOffset, destBuffer, destOffset, count) → {Promise.<number>}
Decrypt the data.
Parameters:
Name | Type | Description |
---|---|---|
srcBuffer |
Uint8Array | The source byte array. |
srcOffset |
number | The source byte offset. |
destBuffer |
Uint8Array | The destination byte array. |
destOffset |
number | The destination byte offset. |
count |
number | The number of bytes to transform. |
Returns:
The number of bytes transformed.
- Type
- Promise.<number>
(async) encryptData(srcBuffer, srcOffset, destBuffer, destOffset, count)
Encrypt the data.
Parameters:
Name | Type | Description |
---|---|---|
srcBuffer |
Uint8Array | The source byte array. |
srcOffset |
number | The source byte offset. |
destBuffer |
Uint8Array | The destination byte array. |
destOffset |
number | The destination byte offset. |
count |
number | The number of bytes to transform. |
Returns:
The number of bytes transformed.
(static) getNativeProxy() → {INativeProxy}
The current proxy used for loading native library.
Returns:
The proxy.
- Type
- INativeProxy
(static) setNativeProxy(proxy)
The native proxy to use for loading libraries for different platforms and operating systems.
Parameters:
Name | Type | Description |
---|---|---|
proxy |
INativeProxy | The proxy. |