@Override
        public void write(byte[] b, int off, int len) throws IOException {
            waitForHandshake();
            synchronized (writeLock) {
                writeInternal(ByteBuffer.wrap(b, off, len));
            }
        }
Wrap bytes written to the underlying socket.
common/src/main/java/org/conscrypt/ConscryptEngineSocket.java