@Override public short readShort() throws IOException { try { return input.readShort(); } catch (KryoException e) { throw new IOException(e); } }
@Override public short readShort() throws IOException { try { return input.readShort(); } catch (KryoException e) { throw new IOException(e); } }
@Override public PyLong read(Kryo kryo, Input input, Class<PyLong> type) { int length = input.readShort(); return new PyLong(new BigInteger(input.readBytes(length))); } }
@Override public short readShort() { return unshadedInput.readShort(); }
@Override public void read(Kryo kryo, Input input) { int numVariableMappings = input.readShort(); variableMappings = new ArrayList<>(numVariableMappings); for(int i = 0;i < numVariableMappings;++i) { int size = input.readInt(); if(size > 0) { byte[] bytes = input.readBytes(size); Map m = SerDeUtils.fromBytes(bytes, Map.class); variableMappings.add(m); } } } }
/** Bulk input of a short array. */ public short[] readShorts (int length) throws KryoException { short[] array = new short[length]; for (int i = 0; i < length; i++) array[i] = readShort(); return array; }
/** Bulk input of a short array. */ public short[] readShorts (int length) throws KryoException { short[] array = new short[length]; for (int i = 0; i < length; i++) array[i] = readShort(); return array; }
public Short read (Kryo kryo, Input input, Class<Short> type) { return input.readShort(); } }
/** Bulk input of a short array. */ public short[] readShorts (int length) throws KryoException { short[] array = new short[length]; for (int i = 0; i < length; i++) array[i] = readShort(); return array; }
public short readShort() throws IOException { try { return input.readShort(); } catch (KryoException e) { throw new IOException(e); } }
@Override public short readShort() throws IOException { try { return input.readShort(); } catch (KryoException e) { throw new IOException(e); } }
@Override public short readShort() throws IOException { try { return input.readShort(); } catch (KryoException e) { throw new IOException(e); } }
public short readShort() throws IOException { try { return input.readShort(); } catch (KryoException e) { throw new IOException(e); } }
@Override public short readShort() throws IOException { try { return input.readShort(); } catch (KryoException e) { throw new IOException(e); } }
@Override public short readShort() throws IOException { try { return input.readShort(); } catch (KryoException e) { throw new IOException(e); } }
@Override public DefaultApplicationId read(Kryo kryo, Input input, Class<DefaultApplicationId> type) { short id = input.readShort(); String name = input.readString(); return new DefaultApplicationId(id, name); } }
public void read (Input input, Object object) { try { field.setShort(object, input.readShort()); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
public void read (Input input, Object object) { try { field.setShort(object, input.readShort()); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
public void read (Input input, Object object) { try { field.setShort(object, input.readShort()); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
@Override public ArchetypeMapper.TransmuterEntry read (Kryo kryo, Input input, Class<ArchetypeMapper.TransmuterEntry> aClass) { Bag<Class<? extends Component>> components = new Bag<Class<? extends Component>>(); int count = input.readInt(); for (int i = 0; i < count; i++) { int index = input.readShort(); Class<? extends Component> type = identifiers.idToType.get(index); components.add(type); } return new ArchetypeMapper.TransmuterEntry(components); } }