public override bool from_byte(byte[] buffer, ref long pos) { if (!base.from_byte(buffer, ref pos)) { return(false); } this.print_report = Cmd.to_bool(buffer, ref pos); this.print_dcm = Cmd.to_bool(buffer, ref pos); this.print_report_ack = Cmd.to_int(buffer, ref pos); this.print_dcm_ack = Cmd.to_int(buffer, ref pos); return(true); }
public bool from_byte(byte[] buffer, ref long pos) { this.id = Cmd.to_string(buffer, ref pos); this.name = Cmd.to_string(buffer, ref pos); this.is_male = Cmd.to_bool(buffer, ref pos); this.age = Cmd.to_uint(buffer, ref pos); this.dcm_type = Cmd.to_string(buffer, ref pos); this.study_department = Cmd.to_string(buffer, ref pos); this.report_num = Cmd.to_uint(buffer, ref pos); this.dcm_num = Cmd.to_uint(buffer, ref pos); this.desc = Cmd.to_string(buffer, ref pos); this.available = Cmd.to_bool(buffer, ref pos); return(true); }