
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@particle/device-control-util
Advanced tools
Utility classes and functions used by other packages in this repository.
npm install @particle/device-control-util --save
Boolean
Compare two array-like objects.
Kind: global function
Returns: Boolean
- true
if the arrays are equal or false
otherwise.
Param | Type | Description |
---|---|---|
arr1 | Array.<*> | First array. |
arr2 | Array.<*> | Second array. |
Write a 32-bit unsigned integer to a buffer (big-endian).
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Destination buffer. | |
val | Number | Value. | |
[offs] | Number | 0 | Offset in the destination buffer. |
Write a 32-bit unsigned integer to a buffer (little-endian).
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Destination buffer. | |
val | Number | Value. | |
[offs] | Number | 0 | Offset in the destination buffer. |
Write a 16-bit unsigned integer to a buffer (big-endian).
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Destination buffer. | |
val | Number | Value. | |
[offs] | Number | 0 | Offset in the destination buffer. |
Write a 16-bit unsigned integer to a buffer (little-endian).
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Destination buffer. | |
val | Number | Value. | |
[offs] | Number | 0 | Offset in the destination buffer. |
Write an 8-bit unsigned integer to a buffer.
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Destination buffer. | |
val | Number | Value. | |
[offs] | Number | 0 | Offset in the destination buffer. |
Number
Read a 32-bit unsigned integer from a buffer (big-endian).
Kind: global function
Returns: Number
- Value.
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Source buffer. | |
[offs] | Number | 0 | Offset in the source buffer. |
Number
Read a 32-bit unsigned integer from a buffer (little-endian).
Kind: global function
Returns: Number
- Value.
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Source buffer. | |
[offs] | Number | 0 | Offset in the source buffer. |
Number
Read a 16-bit unsigned integer from a buffer (big-endian).
Kind: global function
Returns: Number
- Value.
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Source buffer. | |
[offs] | Number | 0 | Offset in the source buffer. |
Number
Read a 16-bit unsigned integer from a buffer (little-endian).
Kind: global function
Returns: Number
- Value.
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Source buffer. | |
[offs] | Number | 0 | Offset in the source buffer. |
Number
Read an 8-bit unsigned integer from a buffer.
Kind: global function
Returns: Number
- Value.
Param | Type | Default | Description |
---|---|---|---|
buf | Uint8Array | Source buffer. | |
[offs] | Number | 0 | Offset in the source buffer. |
Uint8Array
Convert a value to a Uint8Array
.
Kind: global function
Param | Type | Description |
---|---|---|
val | * | Value to convert. |
Uint8Array
Concatenate a number of Uint8Array
objects.
Kind: global function
Param | Type | Description |
---|---|---|
...arrs | Uint8Array | Arrays to concatenate. |
NOTE: Unfortunately, docs have a nasty habit of falling out of date. When in doubt, check usage in tests
FAQs
Utility classes and functions for Node.js and browsers
The npm package @particle/device-control-util receives a total of 5 weekly downloads. As such, @particle/device-control-util popularity was classified as not popular.
We found that @particle/device-control-util demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.