@Override
    public int read(byte[] buffer) throws IOException {
        return read(buffer, 0, buffer.length);
    }
Similar to a {@code readLine} method, but matches what OpenSSL expects
from a {@code BIO_gets} method.
common/src/main/java/org/conscrypt/OpenSSLBIOInputStream.java