MCPcopy Create free account
hub / github.com/secdev/scapy / RowDescription

Class RowDescription

scapy/contrib/postgres.py:288–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288class RowDescription(_ZeroPadding):
289 name = "Row Description"
290 fields_desc = [
291 ByteTagField(b"T"),
292 FieldLenField(
293 "len", None, fmt="I", length_of="cols", adjust=lambda pkt, x: x + 6
294 ),
295 SignedShortField("numfields", 0),
296 PacketListField(
297 "cols",
298 [],
299 pkt_cls=ColumnDescription,
300 count_from=lambda pkt: pkt.numfields,
301 length_from=lambda pkt: pkt.len - 6,
302 ),
303 ]
304
305
306class DataRow(_ZeroPadding):

Callers

nothing calls this directly

Calls 4

FieldLenFieldClass · 0.90
SignedShortFieldClass · 0.90
PacketListFieldClass · 0.90
ByteTagFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…