struct tad_payload_spec_t

Overview

Preprocessed payload specification, ready for iteration and binary generating. More…

#include <tad_types.h>

struct tad_payload_spec_t {
    // fields

    tad_payload_type type;
    size_t length;
    uint8_t* data;
    struct tad_payload_spec_t::@47::@49 plain;
    uint8_t* value;
    uint8_t* mask;
    te_bool exact_len;
    struct tad_payload_spec_t::@47::@50 mask;
    tad_data_unit_t offset;
    tad_data_unit_t length;
    tad_stream_callback func;
    struct tad_payload_spec_t::@47::@51 stream;
    tad_user_generate_method func;
};

Detailed Documentation

Preprocessed payload specification, ready for iteration and binary generating.

Fields

tad_payload_type type

Type of payload spec

size_t length

Payload length

Value/mask length

uint8_t* data

Byte array

uint8_t* value

Expected value when mask applied

uint8_t* mask

The mask

te_bool exact_len

Whether length of matched data should be exactly the same?