[libc-commits] [libc] [libc] Template the writing mode for the writer class (PR #111559)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Tue Oct 8 10:30:11 PDT 2024
================
@@ -167,8 +167,9 @@ static void handle_printf(rpc::Server::Port &port, TempStorage &temp_storage) {
continue;
char *buffer = temp_storage.alloc(buffer_size[lane]);
- WriteBuffer wb(buffer, buffer_size[lane]);
- Writer writer(&wb);
+ WriteBuffer<WriteMode::FILL_BUFF_AND_DROP_OVERFLOW> wb(buffer,
----------------
jhuber6 wrote:
Figured it's best to keep it explicit as they do widly different things depending on the use-case.
https://github.com/llvm/llvm-project/pull/111559
More information about the libc-commits
mailing list