| ... | @@ -10,6 +10,8 @@ const assert = debug.assert; | ... | @@ -10,6 +10,8 @@ const assert = debug.assert; |
| 10 | const testing = std.testing; | 10 | const testing = std.testing; |
| 11 | | 11 | |
| 12 | pub fn FixedSizeFifo(comptime T: type) type { | 12 | pub fn FixedSizeFifo(comptime T: type) type { |
| | 13 | const autoalign = false; |
| | 14 | |
| 13 | return struct { | 15 | return struct { |
| 14 | allocator: *Allocator, | 16 | allocator: *Allocator, |
| 15 | buf: []T, | 17 | buf: []T, |
| ... | @@ -107,8 +109,6 @@ pub fn FixedSizeFifo(comptime T: type) type { | ... | @@ -107,8 +109,6 @@ pub fn FixedSizeFifo(comptime T: type) type { |
| 107 | return self.readableSliceMut(offset); | 109 | return self.readableSliceMut(offset); |
| 108 | } | 110 | } |
| 109 | | 111 | |
| 110 | const autoalign = false; | | |
| 111 | | | |
| 112 | /// Discard first `count` bytes of readable data | 112 | /// Discard first `count` bytes of readable data |
| 113 | pub fn discard(self: *Self, count: usize) void { | 113 | pub fn discard(self: *Self, count: usize) void { |
| 114 | assert(count <= self.count); | 114 | assert(count <= self.count); |