mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
[bun install] WIP
This commit is contained in:
@@ -9,6 +9,10 @@ pub const MutableString = struct {
|
||||
allocator: *std.mem.Allocator,
|
||||
list: std.ArrayListUnmanaged(u8),
|
||||
|
||||
pub fn init2048(allocator: *std.mem.Allocator) !MutableString {
|
||||
return MutableString.init(allocator, 2048);
|
||||
}
|
||||
|
||||
pub const Writer = std.io.Writer(*@This(), anyerror, MutableString.writeAll);
|
||||
pub fn writer(self: *MutableString) Writer {
|
||||
return Writer{
|
||||
|
||||
Reference in New Issue
Block a user