MCPcopy Create free account
hub / github.com/qilingframework/qiling / fd_read

Method fd_read

qiling/os/posix/kernel_proxy/ipc.py:173–177  ·  view source on GitHub ↗
(self, proxy_fd: int, length: int)

Source from the content-addressed store, hash-verified

171 return retval, resp_data
172
173 def fd_read(self, proxy_fd: int, length: int) -> bytes:
174 retval, data = self._fd_op(FdOp.READ, proxy_fd, arg1=length)
175 if retval < 0:
176 return b''
177 return data
178
179 def fd_write(self, proxy_fd: int, data: bytes) -> int:
180 retval, _ = self._fd_op(FdOp.WRITE, proxy_fd, data=data)

Callers 1

readMethod · 0.80

Calls 1

_fd_opMethod · 0.95

Tested by

no test coverage detected