Documentation ¶
Overview ¶
Common data file features.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsecutiveTwenty0s ¶
Return true if the buffer begins with twenty consecutive 0s.
Types ¶
type File ¶
type File struct { Name string // File path and name UsedSize, Size uint64 Growth uint64 Fh *os.File // File handle Buf gommap.MMap // Mapped file buffer }
func (*File) CheckSizeAndEnsure ¶
Ensure that the file has enough room for more data. Grow the file if necessary.
Click to show internal directories.
Click to hide internal directories.