| ... | ... | @@ -142,7 +142,7 @@ pub fn GenericReader( |
| 142 | 142 | self: Self, |
| 143 | 143 | array_list: *std.ArrayList(u8), |
| 144 | 144 | max_append_size: usize, |
| 145 | | ) (error{StreamTooLong} || Error)!void { |
| 145 | ) (error{StreamTooLong} || Allocator.Error || Error)!void { |
| 146 | 146 | return @errorCast(self.any().readAllArrayList(array_list, max_append_size)); |
| 147 | 147 | } |
| 148 | 148 | |
| ... | ... | @@ -151,7 +151,7 @@ pub fn GenericReader( |
| 151 | 151 | comptime alignment: ?u29, |
| 152 | 152 | array_list: *std.ArrayListAligned(u8, alignment), |
| 153 | 153 | max_append_size: usize, |
| 154 | | ) (error{StreamTooLong} || Error)!void { |
| 154 | ) (error{StreamTooLong} || Allocator.Error || Error)!void { |
| 155 | 155 | return @errorCast(self.any().readAllArrayListAligned( |
| 156 | 156 | alignment, |
| 157 | 157 | array_list, |
| ... | ... | @@ -163,7 +163,7 @@ pub fn GenericReader( |
| 163 | 163 | self: Self, |
| 164 | 164 | allocator: Allocator, |
| 165 | 165 | max_size: usize, |
| 166 | | ) (Error || error{StreamTooLong})![]u8 { |
| 166 | ) (Error || Allocator.Error || error{StreamTooLong})![]u8 { |
| 167 | 167 | return @errorCast(self.any().readAllAlloc(allocator, max_size)); |
| 168 | 168 | } |
| 169 | 169 | |
| ... | ... | @@ -172,7 +172,7 @@ pub fn GenericReader( |
| 172 | 172 | array_list: *std.ArrayList(u8), |
| 173 | 173 | delimiter: u8, |
| 174 | 174 | max_size: usize, |
| 175 | | ) (NoEofError || error{StreamTooLong})!void { |
| 175 | ) (NoEofError || Allocator.Error || error{StreamTooLong})!void { |
| 176 | 176 | return @errorCast(self.any().readUntilDelimiterArrayList( |
| 177 | 177 | array_list, |
| 178 | 178 | delimiter, |
| ... | ... | @@ -185,7 +185,7 @@ pub fn GenericReader( |
| 185 | 185 | allocator: Allocator, |
| 186 | 186 | delimiter: u8, |
| 187 | 187 | max_size: usize, |
| 188 | | ) (NoEofError || error{StreamTooLong})![]u8 { |
| 188 | ) (NoEofError || Allocator.Error || error{StreamTooLong})![]u8 { |
| 189 | 189 | return @errorCast(self.any().readUntilDelimiterAlloc( |
| 190 | 190 | allocator, |
| 191 | 191 | delimiter, |
| ... | ... | @@ -206,7 +206,7 @@ pub fn GenericReader( |
| 206 | 206 | allocator: Allocator, |
| 207 | 207 | delimiter: u8, |
| 208 | 208 | max_size: usize, |
| 209 | | ) (Error || error{StreamTooLong})!?[]u8 { |
| 209 | ) (Error || Allocator.Error || error{StreamTooLong})!?[]u8 { |
| 210 | 210 | return @errorCast(self.any().readUntilDelimiterOrEofAlloc( |
| 211 | 211 | allocator, |
| 212 | 212 | delimiter, |