Documentation ¶
Index ¶
- func CopyNFilesUnderDir(outFilename, inDir string) error
- func CopyNFilesUnderDirBySplice(outFilename, inDir string) error
- func FastZeroFile(w TruncateWriter, fileSize int64) (err error)
- func FastZeroFileByTruncate(w TruncateWriter, fileSize int64) (err error)
- type Piece
- type PieceSize
- type TruncateWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyNFilesUnderDir ¶
func FastZeroFile ¶
func FastZeroFile(w TruncateWriter, fileSize int64) (err error)
FastZeroFile Create an empty big file quickly.
func FastZeroFileByTruncate ¶
func FastZeroFileByTruncate(w TruncateWriter, fileSize int64) (err error)
Types ¶
type Piece ¶
type Piece struct {
// contains filtered or unexported fields
}
func (*Piece) GetFilename ¶
func (*Piece) GetShardingInfo ¶
func (*Piece) HasBeenCut ¶
type TruncateWriter ¶
type TruncateWriter interface { io.WriteSeeker Truncate(size int64) error }
Click to show internal directories.
Click to hide internal directories.