Inline the block extension function, do a fast check for available
bytes before doing a search.
error: comparison between signed and unsigned integer expressions
[-Werror=sign-compare]