fix(fs): WriteStream pending write fastpath (#16856)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
Dylan Conway
2025-01-31 05:14:41 -08:00
committed by GitHub
parent 212944a5b6
commit b098c9ed89
147 changed files with 7038 additions and 248 deletions

View File

@@ -2398,7 +2398,7 @@ pub fn allocateLatin1IntoUTF8(allocator: std.mem.Allocator, comptime Type: type,
return try foo.toOwnedSlice();
}
pub fn allocateLatin1IntoUTF8WithList(list_: std.ArrayList(u8), offset_into_list: usize, comptime Type: type, latin1_: Type) !std.ArrayList(u8) {
pub fn allocateLatin1IntoUTF8WithList(list_: std.ArrayList(u8), offset_into_list: usize, comptime Type: type, latin1_: Type) OOM!std.ArrayList(u8) {
var latin1 = latin1_;
var i: usize = offset_into_list;
var list = list_;