Expand description
Provides the platform module.
§Examples
ⓘ
use pharos_native::platform;§Related
crate::runtimefor runtime logic that branches on platform behavior.
Structs§
- Platform
Buffer - Public struct
PlatformBufferused by this module. - Target
Constraint - Public struct
TargetConstraintused by this module.
Enums§
- Host
Target - Public enum
HostTargetused by this module.
Constants§
- MACOS_
CONSTRAINTS 🔒 - MODULE_
STATUS - Public constant
MODULE_STATUSexposed by this module. - PLATFORM_
BUFFER_ 🔒LIMIT - TARGET_
CONSTRAINTS - Public constant
TARGET_CONSTRAINTSexposed by this module. - WASI_
P1_ 🔒CONSTRAINTS - WASM_
WEB_ 🔒CONSTRAINTS
Functions§
- __
acrt_ initialize - Performs acrt initialize.
- __
acrt_ thread_ attach - Performs acrt thread attach.
- __
acrt_ thread_ detach - Performs acrt thread detach.
- __
acrt_ uninitialize - Performs acrt uninitialize.
- __
acrt_ uninitialize_ critical - Performs acrt uninitialize critical.
- __
vcrt_ initialize - Performs vcrt initialize.
- __
vcrt_ thread_ attach - Performs vcrt thread attach.
- __
vcrt_ thread_ detach - Performs vcrt thread detach.
- __
vcrt_ uninitialize - Performs vcrt uninitialize.
- __
vcrt_ uninitialize_ critical - Performs vcrt uninitialize critical.
- _is_
c_ termination_ complete - Performs is c termination complete.
- buffer_
append - Appends bytes to a platform buffer.
- buffer_
free - Releases a platform buffer.
- buffer_
init - Initializes a bounded platform buffer.
- buffer_
reserve - Reserves bounded capacity for a platform buffer.
- dup_
range - Duplicates a bounded byte range as UTF-8 text.
- path_
dirname - Returns a path’s parent component as owned text.
- path_
exists - Checks whether a path exists without following user-controlled commands.
- path_
is_ directory - Returns whether a path currently identifies a directory.
- path_
is_ writable - Checks writability without creating files or invoking external commands.
- path_
join - Joins two paths without allowing an absolute right-hand replacement.
- read_
file_ text - Reads a bounded UTF-8 file.
- starts_
with - Tests whether one string begins with another string.
- target_
constraints - Performs target constraints.
- trim_
in_ place - Trims ASCII whitespace in place.