pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/directio/directio_windows.go (about) 1 // Package directio provides methods for reading/writing files with direct io 2 package directio 3 4 // ////////////////////////////////////////////////////////////////////////////////// // 5 // // 6 // Copyright (c) 2022 ESSENTIAL KAOS // 7 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 8 // // 9 // ////////////////////////////////////////////////////////////////////////////////// // 10 11 import ( 12 "os" 13 ) 14 15 // ////////////////////////////////////////////////////////////////////////////////// // 16 17 const ( 18 BLOCK_SIZE = 0 // ❗ Minimal block size 19 ALIGN_SIZE = 0 // ❗ Align size 20 ) 21 22 // ////////////////////////////////////////////////////////////////////////////////// // 23 24 // ❗ ReadFile read file with Direct IO without buffering data in page cache 25 func ReadFile(file string) ([]byte, error) { 26 panic("UNSUPPORTED") 27 return nil, nil 28 } 29 30 // ❗ WriteFile write file with Direct IO without buffering data in page cache 31 func WriteFile(file string, data []byte, perms os.FileMode) error { 32 panic("UNSUPPORTED") 33 return nil 34 }