allow decoding part of a binary string