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
|
||||
pub interface ReaderWriter {
|
||||
// from Reader
|
||||
mut:
|
||||
read(mut buf []byte) ?int
|
||||
// from Writer
|
||||
write(buf []byte) ?int
|
||||
Reader
|
||||
Writer
|
||||
}
|
||||
|
||||
// ReaderWriterImpl is a ReaderWriter that can be made from
|
||||
|
|
Loading…
Reference in New Issue