Get the maximum valid length from a bitmap.
The length bitmap
The maximum valid length, or 0 if bitmap is empty
getMaxLength(896) // 9 (bits 7,8,9 set) Copy
getMaxLength(896) // 9 (bits 7,8,9 set)
Get the maximum valid length from a bitmap.