Add os.read_at and for Windows; fix mem.clone_slice; fix current directory locking code

This commit is contained in:
gingerBill
2020-09-29 11:11:28 +01:00
parent e95addb1f4
commit 519dcc2b76
3 changed files with 109 additions and 17 deletions
+1 -1
View File
@@ -290,6 +290,6 @@ calc_padding_with_header :: proc(ptr: uintptr, align: uintptr, header_size: int)
clone_slice :: proc(slice: $T/[]$E, allocator := context.allocator, loc := #caller_location) -> T {
new_slice := make(T, len(slice), allocator, loc);
copy(new_slice, slice);
runtime.copy(new_slice, slice);
return new_slice;
}