Skip to main content

BeginsWithBytes

Type

operator

Summary

Determines whether Target begins with Needle.

Syntax

<Target> begins with <Needle>

Description

note

Since the empty data is an initial subsequence of every sequence of bytes, every sequence of bytes begins with the empty data.

Parameters

NameTypeDescription

Needle

An expression which evaluates to binary data.

Target

An expression which evaluates to binary data.

Value

NameTypeDescription

return

True if the bytes of Needle occur as an initial subsequence of the bytes of Target, and false otherwise.

Thank you for your feedback!

Was this page helpful?