Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,14 @@
|
||||
module io
|
||||
|
||||
// Writer is the interface that wraps the `write` method, which
|
||||
// writes `buf.len` bytes to the underlying data stream.
|
||||
pub interface Writer {
|
||||
mut:
|
||||
write(buf []u8) !int
|
||||
}
|
||||
|
||||
// RandomWriter is the interface that wraps the `write_to` method,
|
||||
// which writes `buf.len` bytes to the underlying data stream at a random `pos`.
|
||||
pub interface RandomWriter {
|
||||
write_to(pos u64, buf []u8) !int
|
||||
}
|
||||
Reference in new issue
Block a user