(wip) module version + block info

This commit is contained in:
David Gonzalez Martin 2024-05-11 21:56:04 -06:00
parent b9ba5eee11
commit 3a7ee24509
2 changed files with 1028 additions and 561 deletions

File diff suppressed because it is too large Load Diff

View File

@ -175,6 +175,10 @@ pub fn PinnedArrayAdvanced(comptime T: type, comptime MaybeIndex: ?type, comptim
const Array = @This(); const Array = @This();
pub fn clear(array: *Array) void {
array.length = 0;
}
pub fn const_slice(array: *const Array) []const T { pub fn const_slice(array: *const Array) []const T {
return array.pointer[0..array.length]; return array.pointer[0..array.length];
} }