Files
Odin/core/raw.odin
T
Ginger Bill 80c034ec7c Change naming convention from Ada_Like to RustLike
Naming Conventions:
In general, PascalCase for types and snake_case for values

Import Name:        snake_case (but prefer single word)
Types:              PascalCase
Union Variants:     PascalCase
Enum Values:        PascalCase
Procedures:         snake_case
Local Variables:    snake_case
Constant Variables: SCREAMING_SNAKE_CASE
2017-05-28 14:47:11 +01:00

28 lines
397 B
Odin

Any :: struct #ordered {
data: rawptr,
type_info: ^TypeInfo,
}
String :: struct #ordered {
data: ^byte,
len: int,
};
Slice :: struct #ordered {
data: rawptr,
len: int,
cap: int,
};
DynamicArray :: struct #ordered {
data: rawptr,
len: int,
cap: int,
allocator: Allocator,
};
DynamicMap :: struct #ordered {
hashes: [dynamic]int,
entries: DynamicArray,
};