Examples of unpack()


Examples of org.luaj.vm2.LuaTable.unpack()

    private static class unpack extends VarArgFunction {
        public Varargs invoke(Varargs args) {
            LuaTable t = args.checktable(1);
            switch (args.narg()) {
                case 1: return t.unpack();
                case 2: return t.unpack(args.checkint(2));
                default: return t.unpack(args.checkint(2), args.checkint(3));
            }
        }
    }
View Full Code Here

Examples of org.luaj.vm2.LuaTable.unpack()

    private static class unpack extends VarArgFunction {
        public Varargs invoke(Varargs args) {
            LuaTable t = args.checktable(1);
            switch (args.narg()) {
                case 1: return t.unpack();
                case 2: return t.unpack(args.checkint(2));
                default: return t.unpack(args.checkint(2), args.checkint(3));
            }
        }
    }
}
View Full Code Here

Examples of org.luaj.vm2.LuaTable.unpack()

        public Varargs invoke(Varargs args) {
            LuaTable t = args.checktable(1);
            switch (args.narg()) {
                case 1: return t.unpack();
                case 2: return t.unpack(args.checkint(2));
                default: return t.unpack(args.checkint(2), args.checkint(3));
            }
        }
    }
}
View Full Code Here

Examples of pushy.modules.StructModule.unpack()

    {
        StructModule struct_ = (StructModule)client.getModule("struct");
        String result = getsockopt(SocketModule.SOL_SOCKET,
                                   SocketModule.SO_LINGER,
                                   struct_.calcsize("ii"));
        Object[] unpacked = struct_.unpack("ii", result);
        if (unpacked[0].equals(new Integer(0)))
            return -1;
        return ((Number)unpacked[1]).intValue();
    }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.support.cjson.CJson.unpack()

    final CJson engine = enginePool.getObject();
    try {
      if (pack) {
        return engine.pack(content);
      }
      return engine.unpack(content);
    } finally {
      enginePool.returnObject(engine);
    }
  }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.support.jsonhpack.JsonHPack.unpack()

    final JsonHPack engine = enginePool.getObject();
    try {
      if (pack) {
        return engine.pack(content);
      }
      return engine.unpack(content);
    } finally {
      enginePool.returnObject(engine);
    }
  }
View Full Code Here

Examples of se.llbit.nbt.AnyTag.unpack()

    Long seed = Long.parseLong(args[1]);
    try {
      System.out.println("loading save: "+fn);
      DataInputStream in = new DataInputStream(new GZIPInputStream(new FileInputStream(fn)));
      AnyTag tag = NamedTag.read(in);
      LongTag seedTag = (LongTag) tag.unpack().get("Data").get("RandomSeed");
      seedTag.setData(seed);
      DataOutputStream out = new DataOutputStream(new GZIPOutputStream(new FileOutputStream(args[2])));
      tag.write(out);
      out.close();
      System.out.println("done");
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.