1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: bring back write_bytes_at()

This commit is contained in:
Alexander Medvednikov 2020-02-27 00:41:05 +01:00
parent bb6098e2d3
commit a5db9c3519

View File

@ -326,18 +326,15 @@ pub fn open_file(path string, mode string, options ...int) ?File {
}
}
/*
pub fn (f mut File) write_bytes_at(data voidptr, size, pos int) {
$if linux {
}
$else {
//$if linux {
//}
//$else {
C.fseek(f.cfile, pos, C.SEEK_SET)
C.fwrite(data, 1, size, f.cfile)
C.fseek(f.cfile, 0, C.SEEK_END)
}
//}
}
*/
pub fn (f mut File) flush() {
if !f.opened {