EgretDoc
Back to Home
Location:system/reflect

Module

Module documentation.

modulereflect

Classes

Classes and inheritance.

classreflect::Type
@brief`Type` type.
@details`Type` encapsulates state and operations exported by the system module. It commonly stores runtime handles, protocol state, buffers, configuration, or collection data. Its methods define the primary behavior for the type. If the type owns external resources, prefer `dispose` or `close` for deterministic release.
class Type {
    /*
    @brief `ti` field.
classreflect::Value
@brief`Value` type.
@details`Value` encapsulates state and operations exported by the system module. It commonly stores runtime handles, protocol state, buffers, configuration, or collection data. Its methods define the primary behavior for the type. If the type owns external resources, prefer `dispose` or `close` for deterministic release.
class Value {
    /*
    @brief `p` field.

Functions

Free functions and class methods.

functionreflect::__reflect_type_of_obj
Signatureextern func __reflect_type_of_obj(p: Ptr) -> Ptr;
extern func __reflect_type_of_obj(p: Ptr) -> Ptr;
/*
@brief Binds the low-level runtime symbol `__reflect_type_from_kind`.
@briefBinds the low-level runtime symbol `__reflect_type_of_obj`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • pNative pointer address passed to the runtime binding.
@returnReturns the operation result as `Ptr`.
functionreflect::__reflect_type_from_kind
Signatureextern func __reflect_type_from_kind(kind: Int) -> Ptr;
extern func __reflect_type_from_kind(kind: Int) -> Ptr;
/*
@brief Binds the low-level runtime symbol `__reflect_type_name`.
@briefBinds the low-level runtime symbol `__reflect_type_from_kind`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • kindKind discriminator that selects the value, node, event, or token variant.
@returnReturns the operation result as `Ptr`.
functionreflect::__reflect_type_name
Signatureextern func __reflect_type_name(ti: Ptr) -> String;
extern func __reflect_type_name(ti: Ptr) -> String;
/*
@brief Binds the low-level runtime symbol `__reflect_type_kind`.
@briefBinds the low-level runtime symbol `__reflect_type_name`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
@returnReturns the operation result as `String`.
functionreflect::__reflect_type_kind
Signatureextern func __reflect_type_kind(ti: Ptr) -> Int;
extern func __reflect_type_kind(ti: Ptr) -> Int;
/*
@brief Binds the low-level runtime symbol `__reflect_type_size`.
@briefBinds the low-level runtime symbol `__reflect_type_kind`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
@returnReturns the operation result as `Int`.
functionreflect::__reflect_type_size
Signatureextern func __reflect_type_size(ti: Ptr) -> Int;
extern func __reflect_type_size(ti: Ptr) -> Int;
/*
@brief Binds the low-level runtime symbol `__reflect_type_align`.
@briefBinds the low-level runtime symbol `__reflect_type_size`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
@returnReturns the operation result as `Int`.
functionreflect::__reflect_type_align
Signatureextern func __reflect_type_align(ti: Ptr) -> Int;
extern func __reflect_type_align(ti: Ptr) -> Int;
/*
@brief Binds the low-level runtime symbol `__reflect_type_base`.
@briefBinds the low-level runtime symbol `__reflect_type_align`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
@returnReturns the operation result as `Int`.
functionreflect::__reflect_type_base
Signatureextern func __reflect_type_base(ti: Ptr) -> Ptr;
extern func __reflect_type_base(ti: Ptr) -> Ptr;
/*
@brief Binds the low-level runtime symbol `__reflect_type_field_count`.
@briefBinds the low-level runtime symbol `__reflect_type_base`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
@returnReturns the operation result as `Ptr`.
functionreflect::__reflect_type_field_count
Signatureextern func __reflect_type_field_count(ti: Ptr) -> Int;
extern func __reflect_type_field_count(ti: Ptr) -> Int;
/*
@brief Binds the low-level runtime symbol `__reflect_type_field_name`.
@briefBinds the low-level runtime symbol `__reflect_type_field_count`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
@returnReturns the operation result as `Int`.
functionreflect::__reflect_type_field_name
Signatureextern func __reflect_type_field_name(ti: Ptr, idx: Int) -> String;
extern func __reflect_type_field_name(ti: Ptr, idx: Int) -> String;
/*
@brief Binds the low-level runtime symbol `__reflect_type_field_kind`.
@briefBinds the low-level runtime symbol `__reflect_type_field_name`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
  • idxZero-based index.
@returnReturns the operation result as `String`.
functionreflect::__reflect_type_field_kind
Signatureextern func __reflect_type_field_kind(ti: Ptr, idx: Int) -> Int;
extern func __reflect_type_field_kind(ti: Ptr, idx: Int) -> Int;
/*
@brief Binds the low-level runtime symbol `__reflect_type_field_offset`.
@briefBinds the low-level runtime symbol `__reflect_type_field_kind`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
  • idxZero-based index.
@returnReturns the operation result as `Int`.
functionreflect::__reflect_type_field_offset
Signatureextern func __reflect_type_field_offset(ti: Ptr, idx: Int) -> Int;
extern func __reflect_type_field_offset(ti: Ptr, idx: Int) -> Int;
/*
@brief Binds the low-level runtime symbol `__reflect_type_field_type`.
@briefBinds the low-level runtime symbol `__reflect_type_field_offset`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
  • idxZero-based index.
@returnReturns the operation result as `Int`.
functionreflect::__reflect_type_field_type
Signatureextern func __reflect_type_field_type(ti: Ptr, idx: Int) -> Ptr;
extern func __reflect_type_field_type(ti: Ptr, idx: Int) -> Ptr;
/*
@brief Binds the low-level runtime symbol `__reflect_get_int`.
@briefBinds the low-level runtime symbol `__reflect_type_field_type`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • tiType information value used for reflection, encoding, or runtime dispatch.
  • idxZero-based index.
@returnReturns the operation result as `Ptr`.
functionreflect::__reflect_get_int
Signatureextern func __reflect_get_int(p: Ptr, bytes: Int) -> Int;
extern func __reflect_get_int(p: Ptr, bytes: Int) -> Int;
/*
@brief Binds the low-level runtime symbol `__reflect_set_int`.
@briefBinds the low-level runtime symbol `__reflect_get_int`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • pNative pointer address passed to the runtime binding.
  • bytesByte sequence used as input data, output storage, or encoded protocol content.
@returnReturns the operation result as `Int`.
functionreflect::__reflect_set_int
Signatureextern func __reflect_set_int(p: Ptr, bytes: Int, v: Int) -> Void;
extern func __reflect_set_int(p: Ptr, bytes: Int, v: Int) -> Void;
/*
@brief Binds the low-level runtime symbol `__reflect_get_bool`.
@briefBinds the low-level runtime symbol `__reflect_set_int`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • pNative pointer address passed to the runtime binding.
  • bytesByte sequence used as input data, output storage, or encoded protocol content.
  • vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionreflect::__reflect_get_bool
Signatureextern func __reflect_get_bool(p: Ptr) -> Int;
extern func __reflect_get_bool(p: Ptr) -> Int;
/*
@brief Binds the low-level runtime symbol `__reflect_set_bool`.
@briefBinds the low-level runtime symbol `__reflect_get_bool`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • pNative pointer address passed to the runtime binding.
@returnReturns the operation result as `Int`.
functionreflect::__reflect_set_bool
Signatureextern func __reflect_set_bool(p: Ptr, v: Int) -> Void;
extern func __reflect_set_bool(p: Ptr, v: Int) -> Void;
/*
@brief Binds the low-level runtime symbol `__reflect_get_string`.
@briefBinds the low-level runtime symbol `__reflect_set_bool`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • pNative pointer address passed to the runtime binding.
  • vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionreflect::__reflect_get_string
Signatureextern func __reflect_get_string(p: Ptr) -> String;
extern func __reflect_get_string(p: Ptr) -> String;
/*
@brief Binds the low-level runtime symbol `__reflect_set_string`.
@briefBinds the low-level runtime symbol `__reflect_get_string`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • pNative pointer address passed to the runtime binding.
@returnReturns the operation result as `String`.
functionreflect::__reflect_set_string
Signatureextern func __reflect_set_string(p: Ptr, v: String) -> Void;
extern func __reflect_set_string(p: Ptr, v: String) -> Void;

/*
@briefBinds the low-level runtime symbol `__reflect_set_string`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • pNative pointer address passed to the runtime binding.
  • vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionreflect::kind_invalid
Signaturefunc kind_invalid() -> Int
func kind_invalid() -> Int {
    return 0;
}
@briefProvides the system library operation `kind_invalid`.
@detailsExecutes the `kind_invalid` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_bool
Signaturefunc kind_bool() -> Int
func kind_bool() -> Int {
    return 1;
}
@briefProvides the system library operation `kind_bool`.
@detailsExecutes the `kind_bool` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_int
Signaturefunc kind_int() -> Int
func kind_int() -> Int {
    return 2;
}
@briefProvides the system library operation `kind_int`.
@detailsExecutes the `kind_int` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_int8
Signaturefunc kind_int8() -> Int
func kind_int8() -> Int {
    return 3;
}
@briefProvides the system library operation `kind_int8`.
@detailsExecutes the `kind_int8` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_int16
Signaturefunc kind_int16() -> Int
func kind_int16() -> Int {
    return 4;
}
@briefProvides the system library operation `kind_int16`.
@detailsExecutes the `kind_int16` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_int32
Signaturefunc kind_int32() -> Int
func kind_int32() -> Int {
    return 5;
}
@briefProvides the system library operation `kind_int32`.
@detailsExecutes the `kind_int32` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_int64
Signaturefunc kind_int64() -> Int
func kind_int64() -> Int {
    return 6;
}
@briefProvides the system library operation `kind_int64`.
@detailsExecutes the `kind_int64` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_float
Signaturefunc kind_float() -> Int
func kind_float() -> Int {
    return 7;
}
@briefProvides the system library operation `kind_float`.
@detailsExecutes the `kind_float` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_string
Signaturefunc kind_string() -> Int
func kind_string() -> Int {
    return 8;
}
@briefProvides the system library operation `kind_string`.
@detailsExecutes the `kind_string` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_ptr
Signaturefunc kind_ptr() -> Int
func kind_ptr() -> Int {
    return 9;
}
@briefProvides the system library operation `kind_ptr`.
@detailsExecutes the `kind_ptr` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_class
Signaturefunc kind_class() -> Int
func kind_class() -> Int {
    return 10;
}
@briefProvides the system library operation `kind_class`.
@detailsExecutes the `kind_class` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_float32
Signaturefunc kind_float32() -> Int
func kind_float32() -> Int {
    return 11;
}
@briefProvides the system library operation `kind_float32`.
@detailsExecutes the `kind_float32` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::kind_float64
Signaturefunc kind_float64() -> Int
func kind_float64() -> Int {
    return 12;
}
@briefProvides the system library operation `kind_float64`.
@detailsExecutes the `kind_float64` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionreflect::Type.init
Signaturefunc init(self: reflect.Type) -> Void
    func init(self: reflect.Type) -> Void {
        self.ti = ptr(0);
        return;
@briefInitializes a `Type` instance.
@detailsEstablishes the initial field state for `Type` so other methods can be called safely. Constructor logic should keep fields consistent and avoid leaking partially initialized resources.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionreflect::Type.deinit
Signaturefunc deinit(self: reflect.Type) -> Void
    func deinit(self: reflect.Type) -> Void {
    }
@briefReleases fallback resources at the end of the `Type` lifetime.
@detailsThis destructor hook is called by object lifetime management to clean up underlying resources that were not released explicitly. Normal application code should prefer `dispose`, `close`, or the module-specific close function to release resources at a deterministic time.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionreflect::Type.name
Signaturefunc name(self: reflect.Type) -> String
    func name(self: reflect.Type) -> String {
        return __reflect_type_name(self.ti);
    }
@briefProvides the system library operation `Type.name`.
@detailsExecutes the `name` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `String`.
functionreflect::Type.kind
Signaturefunc kind(self: reflect.Type) -> Int
    func kind(self: reflect.Type) -> Int {
        return __reflect_type_kind(self.ti);
    }
@briefProvides the system library operation `Type.kind`.
@detailsExecutes the `kind` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionreflect::Type.size
Signaturefunc size(self: reflect.Type) -> Int
    func size(self: reflect.Type) -> Int {
        return __reflect_type_size(self.ti);
    }
@briefProvides the system library operation `Type.size`.
@detailsExecutes the `size` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionreflect::Type.align
Signaturefunc align(self: reflect.Type) -> Int
    func align(self: reflect.Type) -> Int {
        return __reflect_type_align(self.ti);
    }
@briefProvides the system library operation `Type.align`.
@detailsExecutes the `align` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionreflect::Type.base
Signaturefunc base(self: reflect.Type) -> reflect.Type
    func base(self: reflect.Type) -> reflect.Type {
        return type_from_ptr(__reflect_type_base(self.ti));
    }
@briefProvides the system library operation `Type.base`.
@detailsExecutes the `base` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `reflect.Type`.
functionreflect::Type.field_count
Signaturefunc field_count(self: reflect.Type) -> Int
    func field_count(self: reflect.Type) -> Int {
        return __reflect_type_field_count(self.ti);
    }
@briefProvides the system library operation `Type.field_count`.
@detailsExecutes the `field_count` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionreflect::Type.field_name
Signaturefunc field_name(self: reflect.Type, i: Int) -> String
    func field_name(self: reflect.Type, i: Int) -> String {
        return __reflect_type_field_name(self.ti, i);
    }
@briefProvides the system library operation `Type.field_name`.
@detailsExecutes the `field_name` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • iZero-based index or loop position selected by the operation.
@returnReturns the operation result as `String`.
functionreflect::Type.field_kind
Signaturefunc field_kind(self: reflect.Type, i: Int) -> Int
    func field_kind(self: reflect.Type, i: Int) -> Int {
        return __reflect_type_field_kind(self.ti, i);
    }
@briefProvides the system library operation `Type.field_kind`.
@detailsExecutes the `field_kind` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • iZero-based index or loop position selected by the operation.
@returnReturns the operation result as `Int`.
functionreflect::Type.field_offset
Signaturefunc field_offset(self: reflect.Type, i: Int) -> Int
    func field_offset(self: reflect.Type, i: Int) -> Int {
        return __reflect_type_field_offset(self.ti, i);
    }
@briefProvides the system library operation `Type.field_offset`.
@detailsExecutes the `field_offset` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • iZero-based index or loop position selected by the operation.
@returnReturns the operation result as `Int`.
functionreflect::Type.field_type
Signaturefunc field_type(self: reflect.Type, i: Int) -> reflect.Type
    func field_type(self: reflect.Type, i: Int) -> reflect.Type {
        return type_from_ptr(__reflect_type_field_type(self.ti, i));
    }
@briefProvides the system library operation `Type.field_type`.
@detailsExecutes the `field_type` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • iZero-based index or loop position selected by the operation.
@returnReturns the operation result as `reflect.Type`.
functionreflect::type_from_ptr
Signaturefunc type_from_ptr(p: Ptr) -> reflect.Type
func type_from_ptr(p: Ptr) -> reflect.Type {
    let t: reflect.Type = new Type();
    t.ti = p;
@briefProvides the system library operation `type_from_ptr`.
@detailsExecutes the `type_from_ptr` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • pNative pointer address passed to the runtime binding.
@returnReturns the operation result as `reflect.Type`.
functionreflect::type_of_kind
Signaturefunc type_of_kind(kind: Int) -> reflect.Type
func type_of_kind(kind: Int) -> reflect.Type {
    return type_from_ptr(__reflect_type_from_kind(kind));
}
@briefProvides the system library operation `type_of_kind`.
@detailsExecutes the `type_of_kind` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • kindKind discriminator that selects the value, node, event, or token variant.
@returnReturns the operation result as `reflect.Type`.
functionreflect::type_of_obj
Signaturefunc type_of_obj(p: Ptr) -> reflect.Type
func type_of_obj(p: Ptr) -> reflect.Type {
    return type_from_ptr(__reflect_type_of_obj(p));
}
@briefProvides the system library operation `type_of_obj`.
@detailsExecutes the `type_of_obj` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • pNative pointer address passed to the runtime binding.
@returnReturns the operation result as `reflect.Type`.
functionreflect::Value.init
Signaturefunc init(self: reflect.Value) -> Void
    func init(self: reflect.Value) -> Void {
        self.p = ptr(0);
        self.ty = type_from_ptr(ptr(0));
@briefInitializes a `Value` instance.
@detailsEstablishes the initial field state for `Value` so other methods can be called safely. Constructor logic should keep fields consistent and avoid leaking partially initialized resources.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionreflect::Value.deinit
Signaturefunc deinit(self: reflect.Value) -> Void
    func deinit(self: reflect.Value) -> Void {
    }
@briefReleases fallback resources at the end of the `Value` lifetime.
@detailsThis destructor hook is called by object lifetime management to clean up underlying resources that were not released explicitly. Normal application code should prefer `dispose`, `close`, or the module-specific close function to release resources at a deterministic time.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionreflect::Value.typ
Signaturefunc typ(self: reflect.Value) -> reflect.Type
    func typ(self: reflect.Value) -> reflect.Type {
        return self.ty;
    }
@briefProvides the system library operation `Value.typ`.
@detailsExecutes the `typ` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `reflect.Type`.
functionreflect::Value.field
Signaturefunc field(self: reflect.Value, i: Int) -> reflect.Value
    func field(self: reflect.Value, i: Int) -> reflect.Value {
        let off: Int = self.ty.field_offset(i);
        let fp: Ptr = ptr_add(self.p, off);
@briefProvides the system library operation `Value.field`.
@detailsExecutes the `field` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • iZero-based index or loop position selected by the operation.
@returnReturns the operation result as `reflect.Value`.
functionreflect::Value.get_int
Signaturefunc get_int(self: reflect.Value) -> Int
    func get_int(self: reflect.Value) -> Int {
        return __reflect_get_int(self.p, self.ty.size());
    }
@briefReads the state or data for `Value.get_int`.
@detailsExecutes the `get_int` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionreflect::Value.set_int
Signaturefunc set_int(self: reflect.Value, v: Int) -> Void
    func set_int(self: reflect.Value, v: Int) -> Void {
        _ = __reflect_set_int(self.p, self.ty.size(), v);
        return;
@briefSets state or configuration with `Value.set_int`.
@detailsExecutes the `set_int` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionreflect::Value.get_bool
Signaturefunc get_bool(self: reflect.Value) -> Bool
    func get_bool(self: reflect.Value) -> Bool {
        return __reflect_get_bool(self.p) != 0;
    }
@briefReads the state or data for `Value.get_bool`.
@detailsExecutes the `get_bool` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns a boolean result; true means the condition holds or the operation succeeded.
functionreflect::Value.set_bool
Signaturefunc set_bool(self: reflect.Value, v: Bool) -> Void
    func set_bool(self: reflect.Value, v: Bool) -> Void {
        if v {
            _ = __reflect_set_bool(self.p, 1);
@briefSets state or configuration with `Value.set_bool`.
@detailsExecutes the `set_bool` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionreflect::Value.get_string
Signaturefunc get_string(self: reflect.Value) -> String
    func get_string(self: reflect.Value) -> String {
        return __reflect_get_string(self.p);
    }
@briefReads the state or data for `Value.get_string`.
@detailsExecutes the `get_string` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `String`.
functionreflect::Value.set_string
Signaturefunc set_string(self: reflect.Value, v: String) -> Void
    func set_string(self: reflect.Value, v: String) -> Void {
        _ = __reflect_set_string(self.p, v);
        return;
@briefSets state or configuration with `Value.set_string`.
@detailsExecutes the `set_string` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionreflect::value_of_ptr
Signaturefunc value_of_ptr(p: Ptr, ty: reflect.Type) -> reflect.Value
func value_of_ptr(p: Ptr, ty: reflect.Type) -> reflect.Value {
    let v: reflect.Value = new Value();
    v.p = p;
@briefProvides the system library operation `value_of_ptr`.
@detailsExecutes the `value_of_ptr` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • pNative pointer address passed to the runtime binding.
  • tyType descriptor, type code, or type name processed by the operation.
@returnReturns the operation result as `reflect.Value`.
functionreflect::value_of_obj
Signaturefunc value_of_obj(p: Ptr) -> reflect.Value
func value_of_obj(p: Ptr) -> reflect.Value {
    return value_of_ptr(p, type_of_obj(p));
}
@briefProvides the system library operation `value_of_obj`.
@detailsExecutes the `value_of_obj` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • pNative pointer address passed to the runtime binding.
@returnReturns the operation result as `reflect.Value`.

Variables

Class fields (var).

varreflect::Type.ti
TypePtr
@brief`ti` field.
@detailsHolds the `ti` value for each `Type` instance. The field type is `Ptr`, and constructors and methods keep it synchronized with the object's runtime state.
    var ti: Ptr;

    /*
varreflect::Value.p
TypePtr
@brief`p` field.
@detailsHolds the `p` value for each `Value` instance. The field type is `Ptr`, and constructors and methods keep it synchronized with the object's runtime state.
    var p: Ptr;
    /*
    @brief `ty` field.
varreflect::Value.ty
Typereflect.Type
@brief`ty` field.
@detailsHolds the `ty` value for each `Value` instance. The field type is `reflect.Type`, and constructors and methods keep it synchronized with the object's runtime state.
    var ty: reflect.Type;
    /*
    @brief `flags` field.
varreflect::Value.flags
TypeInt
@brief`flags` field.
@detailsHolds the `flags` value for each `Value` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var flags: Int;

    /*