| 504 | |
| 505 | |
| 506 | class Parse(_ZeroPadding): |
| 507 | name = "Parse Request" |
| 508 | fields_desc = [ |
| 509 | ByteTagField(b"P"), |
| 510 | FieldLenField("len", None, fmt="I", adjust=lambda pkt, x: len(pkt) - 1), |
| 511 | StrNullField("destination", ""), |
| 512 | StrNullField("query", ""), |
| 513 | FieldLenField("num_param_dtypes", None, fmt="H", count_of="params"), |
| 514 | FieldListField( |
| 515 | "params", |
| 516 | [], |
| 517 | SignedIntField("param", None), |
| 518 | count_from=lambda pkt: pkt.num_param_dtypes, |
| 519 | ), |
| 520 | ] |
| 521 | |
| 522 | |
| 523 | class Execute(_ZeroPadding): |
nothing calls this directly
no test coverage detected
searching dependent graphs…