| ... | ... | @@ -1,6 +1,10 @@ |
| 1 | 1 | const std = @import("../std.zig"); |
| 2 | 2 | const builtin = std.builtin; |
| 3 | 3 | const io = std.io; |
| 4 | const assert = std.debug.assert; |
| 5 | const math = std.math; |
| 6 | const meta = std.meta; |
| 7 | const trait = meta.trait; |
| 4 | 8 | |
| 5 | 9 | pub const Packing = enum { |
| 6 | 10 | /// Pack data to byte alignment |
| ... | ... | @@ -252,7 +256,7 @@ pub fn Serializer(comptime endian: builtin.Endian, comptime packing: Packing, co |
| 252 | 256 | byte.* = if (t_bit_count < u8_bit_count) v else @truncate(u8, v); |
| 253 | 257 | } |
| 254 | 258 | |
| 255 | | try self.out_stream.write(&buffer); |
| 259 | try self.out_stream.writeAll(&buffer); |
| 256 | 260 | } |
| 257 | 261 | |
| 258 | 262 | /// Serializes the passed value into the stream |