Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBlockCache ¶
type FileBlockCache struct {
// contains filtered or unexported fields
}
func (*FileBlockCache) ReadBlocks ¶
func (c *FileBlockCache) ReadBlocks(filePath string, blockSizeMb int) ([][]byte, error)
ReadBlocks 读取文件块列表
func (FileBlockCache) SetSizeMb ¶
func (c FileBlockCache) SetSizeMb(sizeMb int)
SetSizeMb 设置切块单位,默认1MB
Click to show internal directories.
Click to hide internal directories.