Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFilePathToMemfile ¶
CopyFilePathToMemfile takes a file path and copies the data from the file at that location into a memfile
func CopyFileToMemfile ¶
CopyFileToMemfile takes an os.File pointer and copies the data from that file into a memfile
func CopyMemfileToBytes ¶
CopyMemfileToBytes is just a speedy way to retrieve the data stored in a memfile
func CreateEmptyMemfile ¶
CreateEmptyMemfile creates an empty file in memory, and returns an os.File pointer to that file. This file acts like any other file on disk, it may be read from and written to. Both a valid path and a valid file descriptor may be obtained for this file by using either File.Name(), or File.Fd() respectively. When the file is no longer needed it must be closed like any other file, however once it is closed its contents are lost
func CreateMemfileFromData ¶
CreateMemfileFromData is equivalent to calling CreateEmptyMemfile then calling File.Write() on the result, however this function should theoretically outperform the aforementioned option due to its used of POSIX's mmap
Types ¶
This section is empty.