Documentation ¶
Index ¶
Constants ¶
View Source
const ( //default file size 1G DefaultMaxFileSize = (1 << 32) - 1 DefaultMaxValueSize = (1 << 8) - 1 DefaultFileDir = "data" )
View Source
const ( // 4*4 ItemSizeWithoutKV = 1 << 4 // 4*3 + 8 =20 HintSizeWithoutK = 20 )
Variables ¶
Functions ¶
func DecodeItem ¶
Types ¶
type File ¶
type File struct { Offset uint64 // contains filtered or unexported fields }
func (*File) GetFileOffset ¶
type Files ¶
type Files struct {
// contains filtered or unexported fields
}
只读文件
func (*Files) CloseAllFile ¶
func (fs *Files) CloseAllFile()
func (*Files) GetFilePtr ¶
func (*Files) PutFilePtr ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.