public ClickHouseByteBuffer readBuffer(int length) throws IOException {
        if (length < 1) {
            return byteBuffer.reset();
        }

        return byteBuffer.update(readBytes(length));
    }
Reads byte buffer from the input stream.

@param length byte length
@return non-null byte buffer
@throws IOException when failed to read bytes from input stream, not able to
                    retrieve all bytes, or reached end of the stream
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseInputStream.java