Package com.esotericsoftware.kryo.io

Examples of com.esotericsoftware.kryo.io.Input.available()


  }

  public void testInputWithOffset () throws Exception {
    final byte[] buf = new byte[30];
    final Input in = new Input(buf, 10, 10);
    assertEquals(10, in.available());
  }
 
  public void testSmallBuffers() throws Exception {
    ByteBuffer buf = ByteBuffer.allocate(1024);
    ByteBufferOutputStream byteBufferOutputStream = new ByteBufferOutputStream(buf);
View Full Code Here


  }

  public void testInputWithOffset () throws Exception {
    final byte[] buf = new byte[30];
    final Input in = new Input(buf, 10, 10);
    assertEquals(10, in.available());
  }

  public void testSmallBuffers () throws Exception {
    ByteBuffer buf = ByteBuffer.allocate(1024);
    ByteBufferOutputStream byteBufferOutputStream = new ByteBufferOutputStream(buf);
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.