Examples of testDirectByteBufferAccess0()


Examples of com.barchart.udt.SocketUDT.testDirectByteBufferAccess0()

      SocketUDT socket = new SocketUDT(type);

      ByteBuffer byteBuffer = ByteBuffer.allocateDirect(1024);
      log.info("byteBuffer.isDirect={}", byteBuffer.isDirect());

      socket.testDirectByteBufferAccess0(byteBuffer);
      for (int k = 0; k < 3; k++) {
        byte byteValue = byteBuffer.get(k);
        log.info("k={} byteBuffer[k]={}", k, (char) byteValue);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.