|
61 | 61 | :: The caller is expected to only do this for indexes that are within |
62 | 62 | :: the size of the originally allocated pointer and not to reach outside |
63 | 63 | :: that bounds into memory owned by other pointers. |
64 | | - :fun box _offset(index USize) @'ref: compiler intrinsic |
| 64 | + :fun _offset(index USize) @'ref: compiler intrinsic |
65 | 65 |
|
66 | 66 | :: Get a pointer that points to a subset of this original pointer's memory, |
67 | 67 | :: starting at the given element index from the current pointer's address, |
|
78 | 78 | :: Return an alias of the element at the given index. |
79 | 79 | :: |
80 | 80 | :: The caller is expected to only do this for in-bounds indexes. |
81 | | - :fun box _get_at(index USize) (@->A)'aliased: compiler intrinsic |
| 81 | + :fun _get_at(index USize) (@->A)'aliased: compiler intrinsic |
82 | 82 |
|
83 | 83 | :: Return the element at the given index, without capability aliasing. |
84 | 84 | :: This lack of aliasing breaks capability safety, so the caller is expected |
|
106 | 106 | :: you need to copy starting at some offset, use the `_offset` method first. |
107 | 107 | :: |
108 | 108 | :: The caller is expected to only do this for in-bounds element counts. |
109 | | - :fun box _copy_to(other @'ref, count USize) None: compiler intrinsic |
| 109 | + :fun _copy_to(other @'ref, count USize) None: compiler intrinsic |
110 | 110 |
|
111 | 111 | :: Compare the memory referenced by this pointer to that of the other pointer, |
112 | 112 | :: across the byte range indicated by the given element count. |
|
119 | 119 | :: ramifications of what kind of representation the element has in its memory. |
120 | 120 | :: |
121 | 121 | :: The caller is expected to only do this for in-bounds element counts. |
122 | | - :fun box _compare(other @'box, count USize) I32: compiler intrinsic |
| 122 | + :fun _compare(other @'box, count USize) I32: compiler intrinsic |
123 | 123 |
|
124 | 124 | :: Calculate the hash of the block of memory starting at this pointer's head, |
125 | 125 | :: continuing through the given number of elements in that memory. |
|
132 | 132 | :: ramifications of what kind of representation the element has in its memory. |
133 | 133 | :: |
134 | 134 | :: The caller is expected to only do this for in-bounds element counts. |
135 | | - :fun box _hash(count USize) USize: compiler intrinsic |
| 135 | + :fun _hash(count USize) USize: compiler intrinsic |
136 | 136 |
|
137 | 137 | :: Return True if this is a null pointer (i.e. a zero address). |
138 | 138 | :fun tag is_null Bool: compiler intrinsic |
|
0 commit comments