terminal: add strings table to page

This commit is contained in:
Mitchell Hashimoto
2024-07-03 10:13:21 -07:00
parent 69705cbced
commit a71b487d58
3 changed files with 48 additions and 10 deletions

View File

@@ -65,6 +65,9 @@ pub fn BitmapAllocator(comptime chunk_size: comptime_int) type {
/// Allocate n elements of type T. This will return error.OutOfMemory
/// if there isn't enough space in the backing buffer.
///
/// Use (size.zig).getOffset to get the base offset from the backing
/// memory for portable storage.
pub fn alloc(
self: *Self,
comptime T: type,