Package com.esotericsoftware.kryo.io

Examples of com.esotericsoftware.kryo.io.FastInput


        kryoOut.close();
        // U.close(kryoOut, null);

        Input kryoIn = null;

        kryoIn = new FastInput(kryoOut.getBuffer(), 0, kryoOut.position());

        newObj = marsh.readObject(kryoIn, SampleObject.class);
        kryoIn.close();
        // U.close(kryoIn, null);
      }
View Full Code Here


      public Output createOutput(int size, int limit) {
        return new FastOutput(size, limit);
      }

      public Input createInput(InputStream os, int size) {
        return new FastInput(os, size);
      }

      public Input createInput(byte[] buffer) {
        return new FastInput(buffer);
      }
    });
   
    return roundTripWithStreamFactory(length, object1, new StreamFactory() {
      public Output createOutput(OutputStream os) {
View Full Code Here

      public Output createOutput(int size, int limit) {
        return new FastOutput(size, limit);
      }

      public Input createInput(InputStream os, int size) {
        return new FastInput(os, size);
      }

      public Input createInput(byte[] buffer) {
        return new FastInput(buffer);
      }
    });
   
    return roundTripWithStreamFactory(length, object1, new StreamFactory() {
      public Output createOutput(OutputStream os) {
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryo.io.FastInput

Copyright © 2018 www.massapicom. 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.