mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: deprecate os.File.write_bytes and add os.File.write_ptr (#9370)
This commit is contained in:
@@ -288,7 +288,7 @@ pub fn execute(cmd string) Result {
|
||||
unsafe {
|
||||
result = C.ReadFile(child_stdout_read, &buf[0], 1000, voidptr(&bytes_read),
|
||||
0)
|
||||
read_data.write_bytes(&buf[0], int(bytes_read))
|
||||
read_data.write_ptr(&buf[0], int(bytes_read))
|
||||
}
|
||||
if result == false || int(bytes_read) == 0 {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user