NAME

YaraFFI::Record::YR_META - FFI Record for YARA metadata structure

VERSION

Version 0.05

SYNOPSIS

use YaraFFI::Record::YR_META;
use FFI::Platypus;

my $ffi = FFI::Platypus->new(api => 2);

# In a YARA callback, cast metadata pointer to record
my $meta = $ffi->cast('opaque', 'record(YaraFFI::Record::YR_META)*', $meta_ptr);

# Access fields safely
my $type = $meta->type;
my $id_ptr = $meta->identifier;

DESCRIPTION

Represents the YR_META structure from YARA's libyara. This allows safe access to rule metadata through FFI::Platypus records.

STRUCTURE FIELDS

type (sint32)

Metadata type: 1=INTEGER, 2=STRING, 3=BOOLEAN

identifier (opaque)

Pointer to the metadata identifier string

string (opaque)

Pointer to string value (when type is STRING)

integer (sint64)

Integer value (when type is INTEGER)