
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@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 152 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.