mem: rename Allocator primitives to alloc_bytes/dealloc_bytes (Phase 4 naming pulled forward, Agra-approved)
This commit is contained in:
@@ -34,7 +34,7 @@ build :: (alloc: Allocator) -> Value {
|
||||
// `\u00XX` path that has no named shorthand. String values are VIEWS,
|
||||
// so the bytes must outlive the writes: back them with `alloc` (the
|
||||
// arena), not a local that dies when `build` returns.
|
||||
cbytes : [*]u8 = xx alloc.alloc(1);
|
||||
cbytes : [*]u8 = xx alloc.alloc_bytes(1);
|
||||
cbytes[0] = 1;
|
||||
ctrl := string.{ ptr = cbytes, len = 1 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user