| title | bytes ends-with |
|---|---|
| categories | bytes |
| version | 0.107.0 |
| bytes | Check if bytes ends with a pattern. |
| usage | Check if bytes ends with a pattern. |
| editLink | false |
| contributors | false |
bytes ends-with for bytes
Check if bytes ends with a pattern.
> bytes ends-with {flags} (pattern) ...rest
pattern: The pattern to match....rest: For a data structure input, check if bytes at the given cell paths end with the pattern.
| input | output |
|---|---|
| binary | bool |
| table | table |
| record | record |
Checks if binary ends with 0x[AA]
> 0x[1F FF AA AA] | bytes ends-with 0x[AA]
trueChecks if binary ends with 0x[FF AA AA]
> 0x[1F FF AA AA] | bytes ends-with 0x[FF AA AA]
trueChecks if binary ends with 0x[11]
> 0x[1F FF AA AA] | bytes ends-with 0x[11]
false