misc fixes

This commit is contained in:
Meghan Denny
2024-12-12 19:51:57 -08:00
parent 58b7515f3e
commit 3778be8605
9 changed files with 106 additions and 91 deletions

View File

@@ -49,6 +49,8 @@ pub const BufferVectorized = struct {
Encoder.writeU8(str.slice().ptr, str.slice().len, buf.ptr, buf.len, .hex),
} catch return false;
if (written == 0 and str.length() > 0) return false;
switch (written) {
0 => return true,
1 => {