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); }