Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultPieceSize 4M DefaultPieceSize = 4 * 1024 * 1024 // DefaultPieceSizeLimit 15M DefaultPieceSizeLimit = 15 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func ComputePieceSize ¶
ComputePieceSize computes the piece size with specified fileLength.
If the fileLength<0, which means failed to get fileLength and then use the DefaultPieceSize.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.