Imports #
"io"
"os"
"fmt"
"io/fs"
"os"
"syscall"
"fmt"
"os"
"syscall"
"unsafe"
"internal/syscall/windows"
"os"
"io"
"os"
"fmt"
"io/fs"
"os"
"syscall"
"fmt"
"os"
"syscall"
"unsafe"
"internal/syscall/windows"
"os"
Data is mmap'ed read-only data from a file. The backing file is never closed, so Data remains valid for the lifetime of the process.
type Data struct {
f *os.File
Data []byte
}
Mmap maps the given file into memory.
func Mmap(file string) (Data, bool, error)
mmapFile on other systems doesn't mmap the file. It just reads everything.
func mmapFile(f *os.File) (Data, error)
func mmapFile(f *os.File) (Data, error)
func mmapFile(f *os.File) (Data, error)
Generated with Arrow