IsLengthOfLayer

Description:

This method returns OK if the value in the current field is equal to the length of the layer minus the value of the "Offset" parameter. This method is handy for verifying the internal size of a layer against the amount of data collected; the adjustment can be used to exclude a frame check or anything else of the sort.

Parameters:

[Required]

List

"Operator"


List Values

GreaterThan

GreaterThanOrEqualTo

LessThan

LessThanOrEqualTo

EqualTo

NotEqualTo

[Optional]

Int

"Offset"


[Optional]

List

"Units"

(Default value: Bytes)

List values:

Bit

Bits

Times

Nibble

Nibbles

Byte

Bytes

Octet

Octets

Word

Words

Dword

Dwords

Qword

Qwords

Example:

FIELD length_of_layer (Fixed 1) (Decimal) "=0 Bytes" VERIFY (IsLengthOfLayer EqualTo 0 Bytes)