public override bool from_byte(byte[] buffer, ref long pos) { if (!base.from_byte(buffer, ref pos)) { return(false); } this.users.Clear(); Int32 count = to_int(buffer, ref pos); for (int i = 0; i < count; i++) { ReadyUserItem item = new ReadyUserItem(); item.from_byte(buffer, ref pos); this.users.Add(item); } return(true); }
public override bool from_byte(byte[] buffer, ref long pos) { if (!base.from_byte(buffer, ref pos)) return false; this.users.Clear(); Int32 count = to_int(buffer, ref pos); for (int i = 0; i < count; i++) { ReadyUserItem item = new ReadyUserItem(); item.from_byte(buffer, ref pos); this.users.Add(item); } return true; }