Package com.esotericsoftware.kryo.io

Examples of com.esotericsoftware.kryo.io.UnsafeInput.readFloat()


    assertEquals(read.readFloat(1000, false), -64f);
    assertEquals(read.readFloat(1000, true), -64f);
    assertEquals(read.readFloat(1000, false), -65f);
    assertEquals(read.readFloat(1000, true), -65f);
    assertEquals(read.readFloat(1000, false), -8192f);
    assertEquals(read.readFloat(1000, true), -8192f);
  }

  public void testDoubles () throws IOException {
    runDoubleTest(new UnsafeOutput(4096));
    runDoubleTest(new UnsafeOutput(new ByteArrayOutputStream()));
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.