@Override public void writeShort(short v) throws IOException { output.writeShort(v); }
@Override public void writeShort(short v) throws IOException { output.writeShort(v); }
@Override public void write(Kryo kryo, Output output, PyLong object) { byte[] data = object.getValue().toByteArray(); output.writeShort(data.length); output.writeBytes(data); }
@Override public void writeShort(int s) { unshadedOutput.writeShort(s); }
@Override public void write(Kryo kryo, Output output) { int numVariableMappings = variableMappings.isEmpty()?0:variableMappings.size(); output.writeShort(numVariableMappings); for(Map m : variableMappings) { byte[] b = m == null?new byte[]{}:SerDeUtils.toBytes(m); output.writeInt(b.length); if(b.length > 0) { output.writeBytes(b); } } }
/** Bulk output of a short array. */ public void writeShorts (short[] object) throws KryoException { for (int i = 0, n = object.length; i < n; i++) writeShort(object[i]); }
/** Bulk output of a short array. */ public void writeShorts (short[] object) throws KryoException { for (int i = 0, n = object.length; i < n; i++) writeShort(object[i]); }
/** Bulk output of a short array. */ public void writeShorts (short[] object) throws KryoException { for (int i = 0, n = object.length; i < n; i++) writeShort(object[i]); }
/** Bulk output of a short array. */ public void writeShorts (short[] object) throws KryoException { for (int i = 0, n = object.length; i < n; i++) writeShort(object[i]); }
public void writeShort (int v) throws IOException { output.writeShort(v); }
@Override public void write (Kryo kryo, Output output, SaveFileFormat.ComponentIdentifiers ci) { int count = 0; for (Map.Entry<Integer, Class<? extends Component>> entry : ci.idToType.entrySet()) { count++; } output.writeShort(count); for (Map.Entry<Integer, Class<? extends Component>> entry : ci.idToType.entrySet()) { output.writeShort(entry.getKey().intValue()); output.writeString(entry.getValue().getName()); } }
@Override public void write (Kryo kryo, Output output, SaveFileFormat.ComponentIdentifiers ci) { int count = 0; for (Map.Entry<Integer, Class<? extends Component>> entry : ci.idToType.entrySet()) { count++; } output.writeShort(count); for (Map.Entry<Integer, Class<? extends Component>> entry : ci.idToType.entrySet()) { output.writeShort(entry.getKey().intValue()); output.writeString(entry.getValue().getName()); } }
@Override public void write (Kryo kryo, Output output, ArchetypeMapper.TransmuterEntry te) { int count = te.componentTypes.size(); output.writeInt(count); for (int i = 0; i < count; i++) { Class<? extends Component> type = te.componentTypes.get(i); int index = identifiers.typeToId.get(type); output.writeShort(index); } }
public void write (Output output, Object object) { output.writeShort(unsafe().getShort(object, offset)); }
@Override public void write (Kryo kryo, Output output, ArchetypeMapper.TransmuterEntry te) { int count = te.componentTypes.size(); output.writeInt(count); for (int i = 0; i < count; i++) { Class<? extends Component> type = te.componentTypes.get(i); int index = identifiers.typeToId.get(type); output.writeShort(index); } }
public void write (Output output, Object object) { try { output.writeShort(field.getShort(object)); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
public void write (Output output, Object object) { try { output.writeShort(field.getShort(object)); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
public void write (Output output, Object object) { try { output.writeShort(field.getShort(object)); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
@Override public void write(Kryo k, Output o, JavaSimpleRow v) { o.writeShort(v.getColumns().size()); for (JavaRowColumn<?> rowcol : v.getColumns()) { k.writeObject(o, rowcol); } }
@Override public void write(Kryo kryo, Output output, DefaultApplicationId object) { output.writeShort(object.id()); output.writeString(object.name()); }