jdk/src/java.base/share/classes/sun/security/ssl/EngineInputRecord.java
changeset 27292 7ff4b24b33ce
parent 25859 3317bb8137f4
equal deleted inserted replaced
27291:42769f9ca831 27292:7ff4b24b33ce
   347     void writeBuffer(OutputStream s, byte [] buf, int off, int len)
   347     void writeBuffer(OutputStream s, byte [] buf, int off, int len)
   348             throws IOException {
   348             throws IOException {
   349         /*
   349         /*
   350          * Copy data out of buffer, it's ready to go.
   350          * Copy data out of buffer, it's ready to go.
   351          */
   351          */
   352         ByteBuffer netBB = (ByteBuffer)
   352         ByteBuffer netBB = ByteBuffer.allocate(len).put(buf, 0, len).flip();
   353             (ByteBuffer.allocate(len).put(buf, 0, len).flip());
       
   354         engine.writer.putOutboundDataSync(netBB);
   353         engine.writer.putOutboundDataSync(netBB);
   355     }
   354     }
   356 
   355 
   357     /*
   356     /*
   358      * Delineate or read a complete packet from src.
   357      * Delineate or read a complete packet from src.