mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
14 lines
276 B
V
14 lines
276 B
V
module io
|
|
|
|
// Writer represents a stream of data that can be written to
|
|
pub interface Writer {
|
|
mut:
|
|
write(buf []u8) !int
|
|
}
|
|
|
|
// RandomWriter represents a stream of data that can be written to
|
|
// at a random pos
|
|
pub interface RandomWriter {
|
|
write_to(pos u64, buf []u8) !int
|
|
}
|