@Override
    public boolean readBool() throws IOException
    {
        if (offset + 3 > limit && !readable(3))
            throw new ProtostuffException("Truncated message.");

        final int size = buffer[offset++] | (buffer[offset++] << 8);

        if (size != 1)
            throw new ProtostuffException("Invalid kvp boolean");

        return buffer[offset++] != 0x30;
    }
Returns true if there are {@code minimum} bytes available for reading.
<p>
The caller is responsible that the arg {@code minimum} is not larger than the buffer size.
protostuff-kvp/src/main/java/io/protostuff/KvpInput.java