More use of temp allocator.

This commit is contained in:
Christoffer Lerno
2023-07-19 02:46:43 +02:00
parent 5a2fe4c9d9
commit 5c2e82fc8b
7 changed files with 25 additions and 19 deletions

View File

@@ -21,9 +21,9 @@ fn void CsvReader.init(&self, Stream stream, String separator = ",")
fn String[]! CsvReader.read_row(self, Allocator* using = mem::heap())
{
@stack_mem(512; Allocator* mem)
@pool()
{
return self.stream.readline(mem).split(self.separator, .using = using);
return self.stream.treadline().split(self.separator, .using = using);
};
}