Skip to content

Commit 4cabaca

Browse files
committed
Merge branch 'single'
2 parents 9dc4a8d + 82c97ea commit 4cabaca

5 files changed

Lines changed: 400 additions & 275 deletions

File tree

smmap/buf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Module with a simple buffer implementation using the memory manager"""
2-
from mman import SlidingCursor
2+
from mman import WindowCursor
33

44
import sys
55

@@ -10,7 +10,11 @@ class SlidingWindowMapBuffer(object):
1010
memory of a mapped file. The mapping is controlled by the provided cursor.
1111
1212
The buffer is relative, that is if you map an offset, index 0 will map to the
13-
first byte at the offset you used during initialization or begin_access"""
13+
first byte at the offset you used during initialization or begin_access
14+
15+
:note: Although this type effectively hides the fact that there are mapped windows
16+
underneath, it can unfortunately not be used in any non-pure python method which
17+
needs a buffer or string"""
1418
__slots__ = (
1519
'_c', # our cursor
1620
'_size', # our supposed size

0 commit comments

Comments
 (0)