aboutsummaryrefslogtreecommitdiff
path: root/api/bytes.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-21 13:38:35 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-21 13:38:35 -0400
commit868ca31562dcc5d484d8f015adfa173c0a43c415 (patch)
treefdaf07b5de73e7f6418c480d041211b05a8beca9 /api/bytes.md
parentf59988cc104bfa65507e6aab48914d1d35f27c9b (diff)
Update docs
Diffstat (limited to 'api/bytes.md')
-rw-r--r--api/bytes.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/api/bytes.md b/api/bytes.md
index 1b61f166..598c92b7 100644
--- a/api/bytes.md
+++ b/api/bytes.md
@@ -13,9 +13,9 @@ Convert a byte to a hexidecimal text representation.
Argument | Type | Description | Default
---------|------|-------------|---------
-byte | `Byte` | The byte to convert to hex. |
-uppercase | `Bool` | Whether or not to use uppercase hexidecimal letters. | **Default:** `yes`
-prefix | `Bool` | Whether or not to prepend a `0x` prefix. | **Default:** `no`
+byte | `Byte` | The byte to convert to hex. | -
+uppercase | `Bool` | Whether or not to use uppercase hexidecimal letters. | `yes`
+prefix | `Bool` | Whether or not to prepend a `0x` prefix. | `no`
**Return:** The byte as a hexidecimal text.
@@ -36,9 +36,9 @@ Determines if an integer is between two numbers (inclusive).
Argument | Type | Description | Default
---------|------|-------------|---------
-x | `Byte` | The integer to be checked. |
-low | `Byte` | The lower bound to check (inclusive). |
-high | `Byte` | The upper bound to check (inclusive). |
+x | `Byte` | The integer to be checked. | -
+low | `Byte` | The lower bound to check (inclusive). | -
+high | `Byte` | The upper bound to check (inclusive). | -
**Return:** `yes` if `low <= x and x <= high`, otherwise `no`
@@ -63,7 +63,7 @@ Parse a byte literal from text.
Argument | Type | Description | Default
---------|------|-------------|---------
-text | `Text` | The text to parse. |
+text | `Text` | The text to parse. | -
**Return:** The byte parsed from the text, if successful, otherwise `none`.
@@ -86,9 +86,9 @@ Returns an iterator function that iterates over the range of bytes specified.
Argument | Type | Description | Default
---------|------|-------------|---------
-first | `Byte` | The starting value of the range. |
-last | `Byte` | The ending value of the range. |
-step | `Byte?` | An optional step size to use. If unspecified or `none`, the step will be inferred to be `+1` if `last >= first`, otherwise `-1`. | **Default:** `none`
+first | `Byte` | The starting value of the range. | -
+last | `Byte` | The ending value of the range. | -
+step | `Byte?` | An optional step size to use. If unspecified or `none`, the step will be inferred to be `+1` if `last >= first`, otherwise `-1`. | `none`
**Return:** An iterator function that returns each byte in the given range (inclusive).