File: //opt/saltstack/salt/lib/python3.10/site-packages/smmap/__pycache__/mman.cpython-310.pyc
o
;j�] � @ sh d Z ddlmZmZmZmZ ddlZddlmZ g d�Z G dd� d�Z
G d d
� d
�ZG dd� de�ZdS )
zlModule containing a memory memory manager which provides a sliding window on a number of memory mapped files� )� MapWindow� MapRegion�
MapRegionList� is_64_bit� N)�reduce)�StaticWindowMapManager�SlidingWindowMapManager�WindowCursorc @ s� e Zd ZdZdZd3dd�Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� Zd4dd�Z
dd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� ZdS )5r
a�
Pointer into the mapped region of the memory manager, keeping the map
alive until it is destroyed and no other client uses it.
Cursors should not be created manually, but are instead returned by the SlidingWindowMapManager
**Note:**: The current implementation is suited for static and sliding window managers, but it also means
that it must be suited for the somewhat quite different sliding manager. It could be improved, but
I see no real need to do so.��_manager�_rlist�_region�_ofs�_sizeNc C s"