[skip e2e] Add comment for ValidateBinaryArrayLength (#14336)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2021-12-28 09:48:39 +08:00 committed by GitHub
parent ebf1f4fb7e
commit 63ee525bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,6 +165,7 @@ func VectorCount(dim int64, length int) int64 {
return int64(length*8) / singleBitLen
}
// ValidateBinaryArrayLength validates a binary array of @dim & @length
func ValidateBinaryArrayLength(dim int64, length int) error {
singleBitLen := SingleBitLen(dim)
totalBitLen := int64(length * 8)