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

Method _add_padding

scapy/utils.py:2437–2440  ·  view source on GitHub ↗
(self, raw_data)

Source from the content-addressed store, hash-verified

2435 return sec, usec # type: ignore
2436
2437 def _add_padding(self, raw_data):
2438 # type: (bytes) -> bytes
2439 raw_data += ((-len(raw_data)) % 4) * b"\x00"
2440 return raw_data
2441
2442 def build_block(self, block_type, block_body, options=None):
2443 # type: (bytes, bytes, Optional[bytes]) -> bytes

Callers 3

build_blockMethod · 0.95
_write_block_idbMethod · 0.95
_write_block_epbMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected