Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.09 KB

bytes_starts-with.md

File metadata and controls

53 lines (41 loc) · 1.09 KB
title categories version bytes usage feature
bytes starts-with
bytes
0.93.0
Check if bytes starts with a pattern.
Check if bytes starts with a pattern.
default

bytes starts-with for bytes

Check if bytes starts with a pattern.

Signature

> bytes starts-with {flags} (pattern) ...rest

Parameters

  • pattern: The pattern to match.
  • ...rest: For a data structure input, check if bytes at the given cell paths start with the pattern.

Input/output types:

input output
binary bool
record record
table table

Examples

Checks if binary starts with 0x[1F FF AA]

> 0x[1F FF AA AA] | bytes starts-with 0x[1F FF AA]
true

Checks if binary starts with 0x[1F]

> 0x[1F FF AA AA] | bytes starts-with 0x[1F]
true

Checks if binary starts with 0x[1F]

> 0x[1F FF AA AA] | bytes starts-with 0x[11]
false