PyDocs

Nav

Generic Operating System Services

splice

os

function · Added in 3.10Linux >= 2.6.17 with glibc >= 2.5
  • splice(src, dst, count, offset_src=None, offset_dst=None, flags=0)
Transfer count bytes from one pipe to a descriptor or vice versa.

  src
    Source file descriptor.
  dst
    Destination file descriptor.
  count
    Number of bytes to copy.
  offset_src
    Starting offset in src.
  offset_dst
    Starting offset in dst.
  flags
    Flags to modify the semantics of the call.

If offset_src is None, then src is read from the current position;
respectively for offset_dst. The offset associated to the file
descriptor that refers to a pipe must be None.
0 Examples
No examples for os/splice.
See Also
No see-alsos for os/splice
0 Notes
No notes for splice