public static SEND_MONEY_SEAT decode(byte[] data) { SEND_MONEY_SEAT proto = newBuilder(); proto.build(data); return(proto); }
public void addSendMoneySeat(SEND_MONEY_SEAT value) { if (!this.hasSendMoneySeat()) { this.__flag[0] = (byte)(this.__flag[0] | 1); } this.send_money_seat.Add(value); }
public void build(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); for (int i = 0; i < this.__flag.Length; i++) { this.__flag[i] = buf.get(); } if (this.hasSendMoneySeat()) { int size = buf.getShort(); for (int i = 0; i < size; i++) { byte[] bytes = new byte[buf.getInt()]; buf.get(ref bytes, 0, bytes.Length); this.send_money_seat.Add(SEND_MONEY_SEAT.decode(bytes)); } } }