MCPcopy Index your code
hub / github.com/secdev/scapy / read

Method read

scapy/arch/windows/structures.py:610–621  ·  view source on GitHub ↗
(self, x: int = MTU)

Source from the content-addressed store, hash-verified

608
609 class _opened(IO[bytes]):
610 def read(self, x: int = MTU) -> bytes:
611 buf = ctypes.create_string_buffer(x)
612 res = ctypes.windll.kernel32.ReadFile(
613 fd,
614 buf,
615 x,
616 None,
617 None,
618 )
619 if res == 0:
620 raise OSError(ctypes.FormatError())
621 return buf.raw
622 def close(self) -> None:
623 # ignore failures
624 ctypes.windll.kernel32.CloseHandle(fd)

Callers 15

read_nameserversFunction · 0.45
_flush_fdFunction · 0.45
recv_rawMethod · 0.45
generate_manuf.pyFile · 0.45
compute_campaign_digestsFunction · 0.45
parse_txt_hdrsMethod · 0.45
open_ccacheMethod · 0.45
open_keytabMethod · 0.45
load_mibFunction · 0.45
openMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected