length -is:exact package:bytestring

O(1) length returns the length of a ByteString as an Int.
O(c) length returns the length of a ByteString as an Int64
O(1) The length of a ShortByteString.
findIndexOrLength is a variant of findIndex, that returns the length of the string if no element is found, rather than Nothing.
O(c) compareLength compares the length of a ByteString to an Int64