mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
12 lines
271 B
V
12 lines
271 B
V
module io
|
|
|
|
// Writer represents a stream of data that can be wrote to
|
|
pub interface Writer {
|
|
write(buf []byte) ?int
|
|
}
|
|
|
|
// RandomWriter represents a stream of data that can be wrote to
|
|
// at a random pos
|
|
pub interface RandomWriter {
|
|
write_to(pos u64, buf []byte) ?int
|
|
}
|