@Override public void _serialize(JoyBuffer out) { out.putInt(id); out.putPrefixedString(name, JoyBuffer.STRING_TYPE_SHORT); out.putPrefixedString(desc, JoyBuffer.STRING_TYPE_SHORT); out.putInt(award); }
@Override public void deserialize(JoyBuffer in) { this.id = in.getInt(); this.name = in.getPrefixedString(JoyBuffer.STRING_TYPE_SHORT); this.desc = in.getPrefixedString(JoyBuffer.STRING_TYPE_SHORT); this.award = in.getInt(); }
public void serialize(JoyBuffer out) { int[] styls = getStyles(style); out.putInt(styls.length); for (int i = 0; i < styls.length; i++) { out.putInt(styls[i]); out.putInt(getStyles(classid)[i]); out.putInt(getStyles(count)[i]); out.putInt(getStyles(remark)[i]); } }