io: cleanup ReaderWriter interface (#12218)
parent
3a073329ff
commit
98b2bdb410
|
@ -2,11 +2,8 @@ module io
|
||||||
|
|
||||||
// ReaderWriter represents a stream that can be read from and wrote to
|
// ReaderWriter represents a stream that can be read from and wrote to
|
||||||
pub interface ReaderWriter {
|
pub interface ReaderWriter {
|
||||||
// from Reader
|
Reader
|
||||||
mut:
|
Writer
|
||||||
read(mut buf []byte) ?int
|
|
||||||
// from Writer
|
|
||||||
write(buf []byte) ?int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReaderWriterImpl is a ReaderWriter that can be made from
|
// ReaderWriterImpl is a ReaderWriter that can be made from
|
||||||
|
|
Loading…
Reference in New Issue