mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Comment exported functions GetEncodedBlocksLen, GetEncodedBlockLen
This commit is contained in:
parent
fab6892bc3
commit
e1f4ed4650
@ -117,11 +117,13 @@ func NewEncoder(ep *EncoderParams) *Encoder {
|
||||
}
|
||||
}
|
||||
|
||||
// GetEncodedBlocksLen - total length of all encoded blocks
|
||||
func GetEncodedBlocksLen(inputLen int, k, m uint8) (outputLen int) {
|
||||
outputLen = GetEncodedBlockLen(inputLen, k) * int(k+m)
|
||||
return outputLen
|
||||
}
|
||||
|
||||
// GetEncodedBlockLen - length per block of encoded blocks
|
||||
func GetEncodedBlockLen(inputLen int, k uint8) (encodedOutputLen int) {
|
||||
alignment := int(k) * SIMDAlign
|
||||
remainder := inputLen % alignment
|
||||
|
Loading…
Reference in New Issue
Block a user