Module
Module documentation.
moduleunsafe
Classes
Classes and inheritance.
Functions
Free functions and class methods.
functionunsafe::ptr
Signature
func ptr(addr: integer) -> Ptrfunc ptr(addr: integer) -> Ptr {
return builtin.ptr(addr);
}@briefProvides the system library operation `ptr`.
@detailsExecutes the `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
- addrMemory address, socket address, or peer address used by the operation.
@returnReturns the operation result as `Ptr`.
functionunsafe::obj_ptr
Signature
func obj_ptr(x: AnyClass) -> Ptrfunc obj_ptr(x: AnyClass) -> Ptr {
return builtin.obj_ptr(x);
}@briefProvides the system library operation `obj_ptr`.
@detailsExecutes the `obj_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
- xInput value.
@returnReturns the operation result as `Ptr`.
functionunsafe::ptr_to_int
Signature
func ptr_to_int(p: Ptr) -> Intfunc ptr_to_int(p: Ptr) -> Int {
return builtin.ptr_to_int(p);
}@briefProvides the system library operation `ptr_to_int`.
@detailsExecutes the `ptr_to_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
- pNative pointer address passed to the runtime binding.
@returnReturns the operation result as `Int`.
functionunsafe::ptr_add
Signature
func ptr_add(p: Ptr, off_bytes: integer) -> Ptrfunc ptr_add(p: Ptr, off_bytes: integer) -> Ptr {
return builtin.ptr_add(p, off_bytes);
}@briefProvides the system library operation `ptr_add`.
@detailsExecutes the `ptr_add` 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.
- off_bytesSize or length value that limits how much data the operation processes.
@returnReturns the operation result as `Ptr`.
functionunsafe::load8
Signature
func load8(p: Ptr) -> Int8func load8(p: Ptr) -> Int8 {
return builtin.load8(p);
}@briefProvides the system library operation `load8`.
@detailsExecutes the `load8` 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 `Int8`.
functionunsafe::load16
Signature
func load16(p: Ptr) -> Int16func load16(p: Ptr) -> Int16 {
return builtin.load16(p);
}@briefProvides the system library operation `load16`.
@detailsExecutes the `load16` 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 `Int16`.
functionunsafe::load32
Signature
func load32(p: Ptr) -> Int32func load32(p: Ptr) -> Int32 {
return builtin.load32(p);
}@briefProvides the system library operation `load32`.
@detailsExecutes the `load32` 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 `Int32`.
functionunsafe::load64
Signature
func load64(p: Ptr) -> Int64func load64(p: Ptr) -> Int64 {
return builtin.load64(p);
}@briefProvides the system library operation `load64`.
@detailsExecutes the `load64` 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 `Int64`.
functionunsafe::store8
Signature
func store8(p: Ptr, v: integer) -> Voidfunc store8(p: Ptr, v: integer) -> Void {
_ = builtin.store8(p, v);
return;@briefProvides the system library operation `store8`.
@detailsExecutes the `store8` 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.
- vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionunsafe::store16
Signature
func store16(p: Ptr, v: integer) -> Voidfunc store16(p: Ptr, v: integer) -> Void {
_ = builtin.store16(p, v);
return;@briefProvides the system library operation `store16`.
@detailsExecutes the `store16` 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.
- vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionunsafe::store32
Signature
func store32(p: Ptr, v: integer) -> Voidfunc store32(p: Ptr, v: integer) -> Void {
_ = builtin.store32(p, v);
return;@briefProvides the system library operation `store32`.
@detailsExecutes the `store32` 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.
- vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionunsafe::store64
Signature
func store64(p: Ptr, v: integer) -> Voidfunc store64(p: Ptr, v: integer) -> Void {
_ = builtin.store64(p, v);
return;@briefProvides the system library operation `store64`.
@detailsExecutes the `store64` 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.
- vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionunsafe::volatile_load8
Signature
func volatile_load8(p: Ptr) -> Int8func volatile_load8(p: Ptr) -> Int8 {
return builtin.volatile_load8(p);
}@briefProvides the system library operation `volatile_load8`.
@detailsExecutes the `volatile_load8` 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 `Int8`.
functionunsafe::volatile_load16
Signature
func volatile_load16(p: Ptr) -> Int16func volatile_load16(p: Ptr) -> Int16 {
return builtin.volatile_load16(p);
}@briefProvides the system library operation `volatile_load16`.
@detailsExecutes the `volatile_load16` 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 `Int16`.
functionunsafe::volatile_load32
Signature
func volatile_load32(p: Ptr) -> Int32func volatile_load32(p: Ptr) -> Int32 {
return builtin.volatile_load32(p);
}@briefProvides the system library operation `volatile_load32`.
@detailsExecutes the `volatile_load32` 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 `Int32`.
functionunsafe::volatile_load64
Signature
func volatile_load64(p: Ptr) -> Int64func volatile_load64(p: Ptr) -> Int64 {
return builtin.volatile_load64(p);
}@briefProvides the system library operation `volatile_load64`.
@detailsExecutes the `volatile_load64` 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 `Int64`.
functionunsafe::volatile_store8
Signature
func volatile_store8(p: Ptr, v: integer) -> Voidfunc volatile_store8(p: Ptr, v: integer) -> Void {
_ = builtin.volatile_store8(p, v);
return;@briefProvides the system library operation `volatile_store8`.
@detailsExecutes the `volatile_store8` 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.
- vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionunsafe::volatile_store16
Signature
func volatile_store16(p: Ptr, v: integer) -> Voidfunc volatile_store16(p: Ptr, v: integer) -> Void {
_ = builtin.volatile_store16(p, v);
return;@briefProvides the system library operation `volatile_store16`.
@detailsExecutes the `volatile_store16` 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.
- vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionunsafe::volatile_store32
Signature
func volatile_store32(p: Ptr, v: integer) -> Voidfunc volatile_store32(p: Ptr, v: integer) -> Void {
_ = builtin.volatile_store32(p, v);
return;@briefProvides the system library operation `volatile_store32`.
@detailsExecutes the `volatile_store32` 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.
- vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
functionunsafe::volatile_store64
Signature
func volatile_store64(p: Ptr, v: integer) -> Voidfunc volatile_store64(p: Ptr, v: integer) -> Void {
_ = builtin.volatile_store64(p, v);
return;@briefProvides the system library operation `volatile_store64`.
@detailsExecutes the `volatile_store64` 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.
- vValue argument consumed, stored, encoded, compared, or forwarded by this API.
@returnVoid
Variables
Class fields (var).