Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB = 1024 MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Chunk []bool `json:"chunk"` ChunkSize int64 `json:"chunk_size"` FileSize int64 `json:"-"` }
func (*Data) CreateProgressFile ¶
calculate chunk slice and create progress file
func (*Data) LoadProgress ¶
load progress from file or create new progress file if not exist
func (*Data) ReadProgressFile ¶
read compressed progress file and decode to progress data
func (*Data) SaveProgressFile ¶
save progress data to file with zlib compression
Click to show internal directories.
Click to hide internal directories.