mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
io: cleanup ReaderWriter interface (#12218)
This commit is contained in:
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
Block a user