| author | |
| committer | |
| log | c4de3cf339352f0885a4a3008e5c041fd7b5a16a |
| tree | fa4e4b2ca5d440b5ddab6d01b390c1e33cef2755 |
| parent | ac83e39ec5cf043e6756bf9fd9c5776fb1eb9539 |
| signature |
2 files changed, 4 insertions(+), 4 deletions(-)
AnyReadable.zig+2-2| ... | @@ -10,8 +10,8 @@ state: *allowzero anyopaque, | ... | @@ -10,8 +10,8 @@ state: *allowzero anyopaque, |
| 10 | 10 | ||
| 11 | pub const Error = ReadError; // std compat | 11 | pub const Error = ReadError; // std compat |
| 12 | pub const ReadError = anyerror; | 12 | pub const ReadError = anyerror; |
| 13 | pub usingnamespace nio.Readable(@This(), ._var); | 13 | pub usingnamespace nio.Readable(@This(), ._const); |
| 14 | pub fn read(r: *AnyReadable, buffer: []u8) !usize { | 14 | pub fn read(r: AnyReadable, buffer: []u8) !usize { |
| 15 | return r.vtable.read(r.state, buffer); | 15 | return r.vtable.read(r.state, buffer); |
| 16 | } | 16 | } |
| 17 | pub fn anyReadable(r: AnyReadable) AnyReadable { | 17 | pub fn anyReadable(r: AnyReadable) AnyReadable { |
AnyWritable.zig+2-2| ... | @@ -9,8 +9,8 @@ vtable: *const struct { | ... | @@ -9,8 +9,8 @@ vtable: *const struct { |
| 9 | state: *allowzero anyopaque, | 9 | state: *allowzero anyopaque, |
| 10 | 10 | ||
| 11 | pub const WriteError = anyerror; | 11 | pub const WriteError = anyerror; |
| 12 | pub usingnamespace nio.Writable(@This(), ._var); | 12 | pub usingnamespace nio.Writable(@This(), ._const); |
| 13 | pub fn write(r: *AnyWritable, buffer: []u8) !usize { | 13 | pub fn write(r: AnyWritable, buffer: []const u8) !usize { |
| 14 | return r.vtable.write(r.state, buffer); | 14 | return r.vtable.write(r.state, buffer); |
| 15 | } | 15 | } |
| 16 | pub fn anyWritable(r: AnyWritable) AnyWritable { | 16 | pub fn anyWritable(r: AnyWritable) AnyWritable { |