Package ch.njol.yggdrasil

Examples of ch.njol.yggdrasil.YggdrasilOutputStream


   
    assert s.mustSyncDeserialization() ? Bukkit.isPrimaryThread() : true;
   
    try {
      final ByteArrayOutputStream bout = new ByteArrayOutputStream();
      final YggdrasilOutputStream yout = Variables.yggdrasil.newOutputStream(bout);
      yout.writeObject(o);
      yout.flush();
      yout.close();
      final byte[] r = bout.toByteArray();
      final byte[] start = getYggdrasilStart(ci);
      for (int i = 0; i < start.length; i++)
        assert r[i] == start[i] : o + " (" + ci.getC().getName() + "); " + Arrays.toString(start) + ", " + Arrays.toString(r);
      final byte[] r2 = new byte[r.length - start.length];
View Full Code Here

TOP

Related Classes of ch.njol.yggdrasil.YggdrasilOutputStream

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.