aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/io/writer.v
blob: 322dd45e63e2e35e7f0a08f5b780888426f159dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}