mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
Merge pull request #376 from harshavardhana/pr_out_comment_exported_functions_getencodedblockslen_getencodedblocklen
This commit is contained in:
commit
d9bd5e2e10
@ -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) {
|
func GetEncodedBlocksLen(inputLen int, k, m uint8) (outputLen int) {
|
||||||
outputLen = GetEncodedBlockLen(inputLen, k) * int(k+m)
|
outputLen = GetEncodedBlockLen(inputLen, k) * int(k+m)
|
||||||
return outputLen
|
return outputLen
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetEncodedBlockLen - length per block of encoded blocks
|
||||||
func GetEncodedBlockLen(inputLen int, k uint8) (encodedOutputLen int) {
|
func GetEncodedBlockLen(inputLen int, k uint8) (encodedOutputLen int) {
|
||||||
alignment := int(k) * SIMDAlign
|
alignment := int(k) * SIMDAlign
|
||||||
remainder := inputLen % alignment
|
remainder := inputLen % alignment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user