cengal.hardware.memory.mmap.versions.v_0.mmap

 1#!/usr/bin/env python
 2# coding=utf-8
 3
 4# Copyright © 2012-2024 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>
 5# 
 6# Licensed under the Apache License, Version 2.0 (the "License");
 7# you may not use this file except in compliance with the License.
 8# You may obtain a copy of the License at
 9# 
10#     http://www.apache.org/licenses/LICENSE-2.0
11# 
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18
19__all__ = ['SmartMap']
20
21
22"""
23Module Docstring
24Docstrings: http://www.python.org/dev/peps/pep-0257/
25"""
26
27__author__ = "ButenkoMS <gtalk@butenkoms.space>"
28__copyright__ = "Copyright © 2012-2024 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>"
29__credits__ = ["ButenkoMS <gtalk@butenkoms.space>", ]
30__license__ = "Apache License, Version 2.0"
31__version__ = "4.4.1"
32__maintainer__ = "ButenkoMS <gtalk@butenkoms.space>"
33__email__ = "gtalk@butenkoms.space"
34# __status__ = "Prototype"
35__status__ = "Development"
36# __status__ = "Production"
37
38
39import os
40import sys
41import mmap
42from enum import Enum
43
44
45class SmartMap:
46    def __init__(self):
47        self.pagesize = mmap.PAGESIZE
48        self.is_mswindows = (sys.platform == "win32")
49        pass
50
51    def flush(self):
52        pass
53
54    def generate_temp_file_name(self)->str:
55        pass
class SmartMap:
46class SmartMap:
47    def __init__(self):
48        self.pagesize = mmap.PAGESIZE
49        self.is_mswindows = (sys.platform == "win32")
50        pass
51
52    def flush(self):
53        pass
54
55    def generate_temp_file_name(self)->str:
56        pass
pagesize
is_mswindows
def flush(self):
52    def flush(self):
53        pass
def generate_temp_file_name(self) -> str:
55    def generate_temp_file_name(self)->str:
56        pass