pyarrow.create_memory_map#
- pyarrow.create_memory_map(path,size)#
Create a file of the given size and memory-map it.
- Parameters:
- Returns:
- mmap
MemoryMappedFile
- mmap
Examples
Create a file with a memory map:
>>>importpyarrowaspa>>>withpa.create_memory_map('example_mmap_create.dat',27)asmmap:...mmap.write(b'Create a memory-mapped file')...mmap.read_at(10,9)...27b'memory-map'
On this page

