File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ pub fn LinearFifo(
44
44
count : usize ,
45
45
46
46
const Self = @This ();
47
+ pub const Reader = std .io .Reader (* Self , error {}, readFn );
48
+ pub const Writer = std .io .Writer (* Self , error {OutOfMemory }, appendWrite );
47
49
48
50
// Type of Self argument for slice operations.
49
51
// If buffer is inline (Static) then we need to ensure we haven't
@@ -228,7 +230,7 @@ pub fn LinearFifo(
228
230
return self .read (dest );
229
231
}
230
232
231
- pub fn reader (self : * Self ) std.io. Reader( * Self , error {}, readFn ) {
233
+ pub fn reader (self : * Self ) Reader {
232
234
return .{ .context = self };
233
235
}
234
236
@@ -318,7 +320,7 @@ pub fn LinearFifo(
318
320
return bytes .len ;
319
321
}
320
322
321
- pub fn writer (self : * Self ) std.io. Writer( * Self , error { OutOfMemory }, appendWrite ) {
323
+ pub fn writer (self : * Self ) Writer {
322
324
return .{ .context = self };
323
325
}
324
326
You can’t perform that action at this time.
0 commit comments