diff --git a/base/builtin/index.html b/base/builtin/index.html index 88d721fb80..1b85278305 100644 --- a/base/builtin/index.html +++ b/base/builtin/index.html @@ -284,32 +284,32 @@

Index

  • runtime.assign_at_elems
  • runtime.assign_at_elem_string
  • runtime.clear_dynamic_array
  • -
  • runtime.raw_soa_footer_slice
  • -
  • runtime.raw_soa_footer_dynamic_array
  • runtime.reserve_dynamic_array
  • runtime.non_zero_reserve_dynamic_array
  • -
  • runtime.make_soa_aligned
  • -
  • runtime.make_soa_slice
  • runtime.resize_dynamic_array
  • -
  • runtime.make_soa_dynamic_array
  • runtime.non_zero_resize_dynamic_array
  • -
  • runtime.make_soa_dynamic_array_len
  • -
  • runtime.make_soa_dynamic_array_len_cap
  • runtime.map_insert
  • -
  • runtime.resize_soa
  • runtime.map_upsert
  • -
  • runtime.non_zero_resize_soa
  • runtime.card
  • -
  • runtime.reserve_soa
  • runtime.assert
  • -
  • runtime.non_zero_reserve_soa
  • runtime.panic
  • runtime.unimplemented
  • -
  • runtime.append_soa_elem
  • -
  • runtime.non_zero_append_soa_elem
  • runtime.assert_contextless
  • runtime.panic_contextless
  • runtime.unimplemented_contextless
  • +
  • runtime.raw_soa_footer_slice
  • +
  • runtime.raw_soa_footer_dynamic_array
  • +
  • runtime.make_soa_aligned
  • +
  • runtime.make_soa_slice
  • +
  • runtime.make_soa_dynamic_array
  • +
  • runtime.make_soa_dynamic_array_len
  • +
  • runtime.make_soa_dynamic_array_len_cap
  • +
  • runtime.resize_soa
  • +
  • runtime.non_zero_resize_soa
  • +
  • runtime.reserve_soa
  • +
  • runtime.non_zero_reserve_soa
  • +
  • runtime.append_soa_elem
  • +
  • runtime.non_zero_append_soa_elem
  • runtime.append_soa_elems
  • runtime.non_zero_append_soa_elems
  • runtime.unordered_remove_soa
  • @@ -1916,171 +1916,171 @@

    - +

    reserve_dynamic_array ¶

    -
    raw_soa_footer_slice :: proc(array: ^$T/#soa[]$T) -> (footer: ^Raw_SOA_Footer_Slice) {…}
    +
    reserve_dynamic_array :: proc(array: ^$T/[dynamic]$T, #any_int capacity: int, loc := #caller_location) -> Allocator_Error {…}
    - +

    non_zero_reserve_dynamic_array ¶

    -
    raw_soa_footer_dynamic_array :: proc(array: ^$T/#soa[dynamic]$T) -> (footer: ^Raw_SOA_Footer_Dynamic_Array) {…}
    +
    non_zero_reserve_dynamic_array :: proc(array: ^$T/[dynamic]$T, #any_int capacity: int, loc := #caller_location) -> Allocator_Error {…}
    -

    reserve_dynamic_array ¶

    +

    resize_dynamic_array ¶

    -
    reserve_dynamic_array :: proc(array: ^$T/[dynamic]$T, #any_int capacity: int, loc := #caller_location) -> Allocator_Error {…}
    +
    resize_dynamic_array :: proc(array: ^$T/[dynamic]$T, #any_int length: int, loc := #caller_location) -> Allocator_Error {…}
    +
    +  +

    resize_dynamic_array will try to resize memory of a passed dynamic array or map to the requested element count (setting the len, and possibly cap).

    +

    Note: Prefer the procedure group resize

    +
    -

    non_zero_reserve_dynamic_array ¶

    +

    non_zero_resize_dynamic_array ¶

    -
    non_zero_reserve_dynamic_array :: proc(array: ^$T/[dynamic]$T, #any_int capacity: int, loc := #caller_location) -> Allocator_Error {…}
    +
    non_zero_resize_dynamic_array :: proc(array: ^$T/[dynamic]$T, #any_int length: int, loc := #caller_location) -> Allocator_Error {…}
    -

    make_soa_aligned ¶

    +

    map_insert ¶

    -
    make_soa_aligned :: proc($T: typeid/#soa[]T, #any_int length, #any_int alignment: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    +
    map_insert :: proc(m: ^$T/map[$T]$T, key: $T, value: $T, loc := #caller_location) -> (ptr: ^$T) {…}
    -

    make_soa_slice ¶

    +

    map_upsert ¶

    -
    make_soa_slice :: proc($T: typeid/#soa[]T, #any_int length: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    +
    map_upsert :: proc(m: ^$T/map[$T]$T, key: $T, value: $T, loc := #caller_location) -> (prev_key: $T, value_ptr: ^$T, found_previous: bool) {…}
    +
    +  +

    Explicitly inserts a key and value into a map m, the same as map_insert, but the return values differ. +prev_key will return the previous pointer of a key if it exists, check found_previous if was previously found +value_ptr will return the pointer of the memory where the insertion happens, and nil if the map failed to resize +found_previous will be true a previous key was found

    +
    -

    resize_dynamic_array ¶

    +

    card ¶

    -
    resize_dynamic_array :: proc(array: ^$T/[dynamic]$T, #any_int length: int, loc := #caller_location) -> Allocator_Error {…}
    +
    card :: proc "contextless" (s: $T/bit_set[$T]) -> int {…}
    -
    -  -

    resize_dynamic_array will try to resize memory of a passed dynamic array or map to the requested element count (setting the len, and possibly cap).

    -

    Note: Prefer the procedure group resize

    -
    -

    make_soa_dynamic_array ¶

    +

    assert ¶

    -
    make_soa_dynamic_array :: proc($T: typeid/#soa[dynamic]T, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    +
    assert :: proc(condition: bool, message: string = "", loc := #caller_location) {…}
    -

    non_zero_resize_dynamic_array ¶

    +

    panic ¶

    -
    non_zero_resize_dynamic_array :: proc(array: ^$T/[dynamic]$T, #any_int length: int, loc := #caller_location) -> Allocator_Error {…}
    +
    panic :: proc(message: string, loc := #caller_location) -> ! {…}
    -

    make_soa_dynamic_array_len ¶

    +

    unimplemented ¶

    -
    make_soa_dynamic_array_len :: proc($T: typeid/#soa[dynamic]T, #any_int length: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    +
    unimplemented :: proc(message: string, loc := #caller_location) -> ! {…}
    -

    make_soa_dynamic_array_len_cap ¶

    +

    assert_contextless ¶

    -
    make_soa_dynamic_array_len_cap :: proc($T: typeid/#soa[dynamic]T, #any_int length, #any_int capacity: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    +
    assert_contextless :: proc "contextless" (condition: bool, message: string = "", loc := #caller_location) {…}
    -

    map_insert ¶

    +

    panic_contextless ¶

    -
    map_insert :: proc(m: ^$T/map[$T]$T, key: $T, value: $T, loc := #caller_location) -> (ptr: ^$T) {…}
    +
    panic_contextless :: proc "contextless" (message: string, loc := #caller_location) -> ! {…}
    -

    resize_soa ¶

    +

    unimplemented_contextless ¶

    -
    resize_soa :: proc(array: ^$T/#soa[dynamic]$T, #any_int length: int, loc := #caller_location) -> Allocator_Error {…}
    +
    unimplemented_contextless :: proc "contextless" (message: string, loc := #caller_location) -> ! {…}
    -

    map_upsert ¶

    +
    -
    map_upsert :: proc(m: ^$T/map[$T]$T, key: $T, value: $T, loc := #caller_location) -> (prev_key: $T, value_ptr: ^$T, found_previous: bool) {…}
    +
    raw_soa_footer_slice :: proc(array: ^$T/#soa[]$T) -> (footer: ^Raw_SOA_Footer_Slice) {…}
    -
    -  -

    Explicitly inserts a key and value into a map m, the same as map_insert, but the return values differ. -prev_key will return the previous pointer of a key if it exists, check found_previous if was previously found -value_ptr will return the pointer of the memory where the insertion happens, and nil if the map failed to resize -found_previous will be true a previous key was found

    -
    -

    non_zero_resize_soa ¶

    +
    -
    non_zero_resize_soa :: proc(array: ^$T/#soa[dynamic]$T, #any_int length: int, loc := #caller_location) -> Allocator_Error {…}
    +
    raw_soa_footer_dynamic_array :: proc(array: ^$T/#soa[dynamic]$T) -> (footer: ^Raw_SOA_Footer_Dynamic_Array) {…}
    -

    card ¶

    +

    make_soa_aligned ¶

    -
    card :: proc "contextless" (s: $T/bit_set[$T]) -> int {…}
    +
    make_soa_aligned :: proc($T: typeid/#soa[]T, #any_int length, #any_int alignment: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    -

    reserve_soa ¶

    +

    make_soa_slice ¶

    -
    reserve_soa :: proc(array: ^$T/#soa[dynamic]$T, #any_int capacity: int, loc := #caller_location) -> Allocator_Error {…}
    +
    make_soa_slice :: proc($T: typeid/#soa[]T, #any_int length: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    -

    assert ¶

    +

    make_soa_dynamic_array ¶

    -
    assert :: proc(condition: bool, message: string = "", loc := #caller_location) {…}
    +
    make_soa_dynamic_array :: proc($T: typeid/#soa[dynamic]T, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    -

    non_zero_reserve_soa ¶

    +

    make_soa_dynamic_array_len ¶

    -
    non_zero_reserve_soa :: proc(array: ^$T/#soa[dynamic]$T, #any_int capacity: int, loc := #caller_location) -> Allocator_Error {…}
    +
    make_soa_dynamic_array_len :: proc($T: typeid/#soa[dynamic]T, #any_int length: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    -

    panic ¶

    +

    make_soa_dynamic_array_len_cap ¶

    -
    panic :: proc(message: string, loc := #caller_location) -> ! {…}
    +
    make_soa_dynamic_array_len_cap :: proc($T: typeid/#soa[dynamic]T, #any_int length, #any_int capacity: int, allocator := context.allocator, loc := #caller_location) -> (array: T, err: Allocator_Error) #optional_ok {…}
    -

    unimplemented ¶

    +

    resize_soa ¶

    -
    unimplemented :: proc(message: string, loc := #caller_location) -> ! {…}
    +
    resize_soa :: proc(array: ^$T/#soa[dynamic]$T, #any_int length: int, loc := #caller_location) -> Allocator_Error {…}
    -

    append_soa_elem ¶

    +

    non_zero_resize_soa ¶

    -
    append_soa_elem :: proc(array: ^$T/#soa[dynamic]$T, #no_broadcast arg: $T, loc := #caller_location) -> (n: int, err: Allocator_Error) #optional_ok {…}
    +
    non_zero_resize_soa :: proc(array: ^$T/#soa[dynamic]$T, #any_int length: int, loc := #caller_location) -> Allocator_Error {…}
    -

    non_zero_append_soa_elem ¶

    +

    reserve_soa ¶

    -
    non_zero_append_soa_elem :: proc(array: ^$T/#soa[dynamic]$T, #no_broadcast arg: $T, loc := #caller_location) -> (n: int, err: Allocator_Error) #optional_ok {…}
    +
    reserve_soa :: proc(array: ^$T/#soa[dynamic]$T, #any_int capacity: int, loc := #caller_location) -> Allocator_Error {…}
    -

    assert_contextless ¶

    +

    non_zero_reserve_soa ¶

    -
    assert_contextless :: proc "contextless" (condition: bool, message: string = "", loc := #caller_location) {…}
    +
    non_zero_reserve_soa :: proc(array: ^$T/#soa[dynamic]$T, #any_int capacity: int, loc := #caller_location) -> Allocator_Error {…}
    -

    panic_contextless ¶

    +

    append_soa_elem ¶

    -
    panic_contextless :: proc "contextless" (message: string, loc := #caller_location) -> ! {…}
    +
    append_soa_elem :: proc(array: ^$T/#soa[dynamic]$T, #no_broadcast arg: $T, loc := #caller_location) -> (n: int, err: Allocator_Error) #optional_ok {…}
    -

    unimplemented_contextless ¶

    +

    non_zero_append_soa_elem ¶

    -
    unimplemented_contextless :: proc "contextless" (message: string, loc := #caller_location) -> ! {…}
    +
    non_zero_append_soa_elem :: proc(array: ^$T/#soa[dynamic]$T, #no_broadcast arg: $T, loc := #caller_location) -> (n: int, err: Allocator_Error) #optional_ok {…}
    diff --git a/base/runtime/index.html b/base/runtime/index.html index 3f8e3578a3..970b0cd0cb 100644 --- a/base/runtime/index.html +++ b/base/runtime/index.html @@ -4927,7 +4927,7 @@

    Source Files

  • (hidden platform specific files)
  • Generation Information

    -

    Generated with odin version dev-2025-01 (vendor "odin") Windows_amd64 @ 2025-01-03 21:10:37.060567400 +0000 UTC

    +

    Generated with odin version dev-2025-01 (vendor "odin") Windows_amd64 @ 2025-01-04 21:10:01.199078100 +0000 UTC