mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
* repo-wide: trim trailing spaces Note: This doesn't touch the .tbl files in encodings/ since they include meaningful trailing spaces (`20= `) * patterns: clean up duplicate semicolons * ELF: add header magic check * glTF: use type::Magic for magic value * glTF: check that the file size in the header matches * xgstexture: fix generics syntax for magic value * JPEG: define hex enum with 0x00 instead of 0X00 * CI: update deprecated actions --------- Co-authored-by: Nik <werwolv98@gmail.com>
44 lines
1.2 KiB
Rust
44 lines
1.2 KiB
Rust
#pragma once
|
|
|
|
import hex.impl.imhex_check;
|
|
|
|
/*!
|
|
Library to interact with the currently loaded provider.
|
|
*/
|
|
|
|
namespace auto hex::prv {
|
|
|
|
|
|
/**
|
|
Queries information from the currently loaded provider. The kind of information that's available depends on the provider that's loaded
|
|
|
|
> **Available information**
|
|
> - File Provider
|
|
> - `file_path() -> str`
|
|
> - `file_name() -> str`
|
|
> - `file_extension() -> str`
|
|
> - `creation_time() -> time_t`
|
|
> - `access_time() -> time_t`
|
|
> - `modification_time() -> time_t`
|
|
> - `permissions() -> u16`
|
|
> - Disk Provider
|
|
> - `file_path() -> str`
|
|
> - `sector_size() -> u128`
|
|
> - GDB Provider
|
|
> - `ip() -> str`
|
|
> - `port() -> u16`
|
|
> - Process Memory Provider
|
|
> - `region_address(regionName) -> u64`
|
|
> - `region_size(regionName) -> u64`
|
|
> - `process_id() -> u32`
|
|
> - `process_name() -> str`
|
|
|
|
@param category Information category
|
|
@param argument Extra argument to pass along
|
|
*/
|
|
fn get_information(str category, str argument = "") {
|
|
return builtin::hex::prv::get_information(category, argument);
|
|
};
|
|
|
|
}
|