mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-05-13 21:14:17 +00:00
remove uint parse/random
This commit is contained in:
@@ -101,11 +101,6 @@ export default defineConfig({
|
|||||||
collapsed: true,
|
collapsed: true,
|
||||||
autogenerate: { directory: 'processors/time' }
|
autogenerate: { directory: 'processors/time' }
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: "Uint",
|
|
||||||
collapsed: true,
|
|
||||||
autogenerate: { directory: 'processors/uint' }
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
---
|
|
||||||
title: Uint Parse
|
|
||||||
sidebar:
|
|
||||||
order: 1
|
|
||||||
---
|
|
||||||
The `uint.parse` processor takes a string and parses it as an unsigned integer with the specified `base` and `bitSize`. This processor will return an error if the message being processed is not a string or if the string cannot be parsed into an unsigned integer.
|
|
||||||
|
|
||||||
- **type**: `uint.parse`
|
|
||||||
- **params**:
|
|
||||||
- **base**: (optional) the base to use for parsing the unsigned integer, defaults to 10
|
|
||||||
- **bitSize**: (optional) the bit size of the unsigned integer to parse, defaults to 64
|
|
||||||
|
|
||||||
### Example
|
|
||||||
This would parse the string payload as a 32 bit, base 10 unsigned integer and set the payload to that value.
|
|
||||||
```
|
|
||||||
- type: uint.parse
|
|
||||||
params:
|
|
||||||
bitSize: 32
|
|
||||||
```
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
title: Uint Random
|
|
||||||
sidebar:
|
|
||||||
order: 2
|
|
||||||
---
|
|
||||||
The `uint.random` processor will set the payload to a random unsigned integer between the specified `min` and `max` value. The minimum and maximum values are inclusive.
|
|
||||||
|
|
||||||
- **type**: `uint.random`
|
|
||||||
- **params**:
|
|
||||||
- **min**: the minimum value for the random unsigned integer.
|
|
||||||
- **max**: the maximum value for the random unsigned integer.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
This would generate a random unsigned integer between 0 and 127 and set the payload to that value.
|
|
||||||
```
|
|
||||||
- type: uint.random
|
|
||||||
params:
|
|
||||||
min: 0
|
|
||||||
max: 127
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user