
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@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
We found that @particle/device-control-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 29 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.