class

CrystalPE::Image_Resource_Directory

Inherits Reference < Object

https://referencesource.microsoft.com/#System.Deployment/System/Deployment/Application/PEStream.cs,b01be218023fc607,references

Constructors

from_bytes(bts : Bytes) : Image_Resource_Directory

parses a ImageResourceDirectory from a set of bytes. this should be exactly 16 bytes and only represents the core strucure without children or padding

Source
from_rsrc_section_bytes(section_bytes : Bytes, offset : UInt32 | Int32 = 0) : Image_Resource_Directory

parses and returns an Image_Resource_Directory stru8cture the represents the rsrc section offset is used for recursive and is not used for the parent call and is the byte offset from the start of the .rsrc directory

Source

Instance methods

characteristics
Source
characteristics=(characteristics : UInt32)
Source
children

this is used for inheritance and child object storage. not technically a part of the win32 structure but logical to place it here as it makes inheritance easy

Source
children=(children : Array(Image_Resource_Directory_Entry))

this is used for inheritance and child object storage. not technically a part of the win32 structure but logical to place it here as it makes inheritance easy

Source
from_rsrc_section_bytes(section_bytes : Bytes, offset : Int32 = 0) : Image_Resource_Directory
Source
major_version
Source
major_version=(major_version : UInt16)
Source
minor_version
Source
minor_version=(minor_version : UInt16)
Source
number_of_id_entries
Source
number_of_id_entries=(number_of_id_entries : UInt16)
Source
number_of_named_entries
Source
number_of_named_entries=(number_of_named_entries : UInt16)
Source
padding

this is only used for exporting size and peformat but we need to store the padding to ensure we dont change the binary

Source
padding=(padding : Bytes)

this is only used for exporting size and peformat but we need to store the padding to ensure we dont change the binary

Source
rsrc_offset
Source
rsrc_offset=(rsrc_offset : UInt32)
Source
time_date_stamp
Source
time_date_stamp=(time_date_stamp : UInt32)
Source
to_pe_slice

exports the treed structure of this and its children as it would apear in the pe file

Source
to_slice

exports the core strucutre to a slice

Source