NAME

YaraFFI::Record::YR_MATCH - FFI Record for YARA match structure

VERSION

Version 0.05

SYNOPSIS

use YaraFFI::Record::YR_MATCH;

# Cast match pointer to record
my $match = $ffi->cast('opaque', 'record(YaraFFI::Record::YR_MATCH)*', $match_ptr);

# Access match details
my $offset = $match->offset;
my $length = $match->match_length;

DESCRIPTION

Represents the YR_MATCH structure from YARA's libyara. Contains information about where a string pattern matched in the scanned data.

STRUCTURE FIELDS

base (sint64)

Base offset

offset (sint64)

Byte offset where the match occurred

match_length (sint32)

Length of the matched data

data_length (sint32)

Length of additional data