mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 21:35:19 +00:00
[mem]: Document raw.odin
This commit is contained in:
@@ -3,40 +3,86 @@ package mem
|
||||
import "base:builtin"
|
||||
import "base:runtime"
|
||||
|
||||
/*
|
||||
Mamory layout of the `any` type.
|
||||
*/
|
||||
Raw_Any :: runtime.Raw_Any
|
||||
|
||||
/*
|
||||
Mamory layout of the `string` type.
|
||||
*/
|
||||
Raw_String :: runtime.Raw_String
|
||||
|
||||
/*
|
||||
Mamory layout of the `cstring` type.
|
||||
*/
|
||||
Raw_Cstring :: runtime.Raw_Cstring
|
||||
|
||||
/*
|
||||
Mamory layout of `[]T` types.
|
||||
*/
|
||||
Raw_Slice :: runtime.Raw_Slice
|
||||
|
||||
/*
|
||||
Mamory layout of `[dynamic]T` types.
|
||||
*/
|
||||
Raw_Dynamic_Array :: runtime.Raw_Dynamic_Array
|
||||
|
||||
/*
|
||||
Mamory layout of `map[K]V` types.
|
||||
*/
|
||||
Raw_Map :: runtime.Raw_Map
|
||||
|
||||
/*
|
||||
Mamory layout of `#soa []T` types.
|
||||
*/
|
||||
Raw_Soa_Pointer :: runtime.Raw_Soa_Pointer
|
||||
|
||||
/*
|
||||
Mamory layout of the `complex32` type.
|
||||
*/
|
||||
Raw_Complex32 :: runtime.Raw_Complex32
|
||||
|
||||
/*
|
||||
Mamory layout of the `complex64` type.
|
||||
*/
|
||||
Raw_Complex64 :: runtime.Raw_Complex64
|
||||
|
||||
/*
|
||||
Mamory layout of the `complex128` type.
|
||||
*/
|
||||
Raw_Complex128 :: runtime.Raw_Complex128
|
||||
|
||||
/*
|
||||
Mamory layout of the `quaternion64` type.
|
||||
*/
|
||||
Raw_Quaternion64 :: runtime.Raw_Quaternion64
|
||||
|
||||
/*
|
||||
Mamory layout of the `quaternion128` type.
|
||||
*/
|
||||
Raw_Quaternion128 :: runtime.Raw_Quaternion128
|
||||
|
||||
/*
|
||||
Mamory layout of the `quaternion256` type.
|
||||
*/
|
||||
Raw_Quaternion256 :: runtime.Raw_Quaternion256
|
||||
|
||||
/*
|
||||
Mamory layout of the `quaternion64` type.
|
||||
*/
|
||||
Raw_Quaternion64_Vector_Scalar :: runtime.Raw_Quaternion64_Vector_Scalar
|
||||
|
||||
/*
|
||||
Mamory layout of the `quaternion128` type.
|
||||
*/
|
||||
Raw_Quaternion128_Vector_Scalar :: runtime.Raw_Quaternion128_Vector_Scalar
|
||||
|
||||
/*
|
||||
Mamory layout of the `quaternion256` type.
|
||||
*/
|
||||
Raw_Quaternion256_Vector_Scalar :: runtime.Raw_Quaternion256_Vector_Scalar
|
||||
|
||||
/*
|
||||
Create a value of the any type.
|
||||
|
||||
This procedure creates a value with type `any` that points to an object with
|
||||
typeid `id` located at an address specified by `data`.
|
||||
*/
|
||||
make_any :: proc "contextless" (data: rawptr, id: typeid) -> any {
|
||||
return transmute(any)Raw_Any{data, id}
|
||||
}
|
||||
|
||||
/*
|
||||
Obtain pointer to the data.
|
||||
|
||||
This procedure returns the pointer to the data of a slice, string, or a dynamic
|
||||
array.
|
||||
*/
|
||||
raw_data :: builtin.raw_data
|
||||
|
||||
Reference in New Issue
Block a user