PyDocs

Nav

Networking and Interprocess Communication

mmap.write

mmap

method of mmapnot WASI
  • mmap.write(bytes)
Write the bytes in bytes into memory at the current position of the file pointer and return the number of bytes written (never less than len(bytes), since if the write fails, a ValueError will be raised). The file position is updated to point after the bytes that were written. If the mmap was created with ACCESS_READ, then writing to it will raise a TypeError exception.
Changed in 3.5, 3.6
  • 3.5: Writable bytes-like object is now accepted.
  • 3.6: The number of bytes written is now returned.
0 Examples
No examples for mmap/mmap.write.
See Also
No see-alsos for mmap/mmap.write
0 Notes
No notes for mmap.write