ecl-logo Documentation

ValidPacketFormatQ

ValidPacketFormatQ[packet]out

checks to see if the values in packet match type definitions. Header fields (Type, ID, etc.) are skipped.

ValidPacketFormatQ[packets]out

checks to see if the values in packets match type definitions. Header fields (Type, ID, etc.) are skipped.

ValidPacketFormatQ[packet,type]out

checks to see if the values in packet match type definitions and are of the given type. Header fields (Type, ID, etc.) are skipped.

ValidPacketFormatQ[packets,type]out

checks to see if the values in packets match type definitions and are of the given type. Header fields (Type, ID, etc.) are skipped.

Details

    Input
    Output
    General Options

Examples

Basic Examples  (2)

Returns False if field not in definition:

Returns False if field value does not match storage pattern in definition:

Additional Examples  (2)

Ignores computable fields (RuleDelayed):

If field has default Units and none are specified, add them before checking validity:

Options  (3)

DisplayFunction  (1)

The printed list of packets can be modified:

Strict  (1)

Returns False if computable field does not match its storage pattern when Strict -> True:

Verbose  (1)

Verbose Option prints the individual field checks: