oaMapWindow
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaMapWindow 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaMapWindow 当前在 oapy 中可用的 Python 接口。
详细说明
This utility class is used to read data from and write data to a memory-mapped disk file。 The primary usage of oaMapWindow is internal to OpenAccess。 It is public because applications that do pcell evaluation can use them to store private data in a pcell supermaster。 See oaPackedData for a discussion of this usage。 The only function that pcell evaluators need to call on an oaMapWindow is data() 。 They do not ever construct a class instance。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.isMapped() |
| ✅ | obj.isMapped(sizeIn, offsetIn, loc) |
| ✅ | obj.getSize() |
| ✅ | obj.getOffset() |
| ✅ | obj.getLoc(offsetIn) |
| ✅ | obj.operator[](index) |
| ✅ | obj.getBytes(loc) |
| ✅ | obj.data() |
方法说明
obj.isMapped()
绑定状态: 已绑定
Python 调用: obj.isMapped()
This function returns true if the window is mapped and covers sizeIn bytes starting at offsetIn。 The location within the window of offsetIn is returned in loc。
Python 示例
from oapy._oa import _base
# assume obj is a oaMapWindow
obj.isMapped()
obj.isMapped(sizeIn, offsetIn, loc)
绑定状态: 已绑定
Python 调用: obj.isMapped(sizeIn, offsetIn, loc)
This function returns true if this mapWindow is mapped。
Python 示例
from oapy._oa import _base
# assume obj is a oaMapWindow
obj.isMapped(sizeIn, offsetIn, loc)
obj.getSize()
绑定状态: 已绑定
Python 调用: obj.getSize()
This function returns the size of this mapWindow。
Python 示例
from oapy._oa import _base
# assume obj is a oaMapWindow
obj.getSize()
obj.getOffset()
绑定状态: 已绑定
Python 调用: obj.getOffset()
This function returns the offset of this mapWindow。
Python 示例
from oapy._oa import _base
# assume obj is a oaMapWindow
obj.getOffset()
obj.getLoc(offsetIn)
绑定状态: 已绑定
Python 调用: obj.getLoc(offsetIn)
This function returns the location within the window of offsetIn, which must be currently mapped。
Python 示例
from oapy._oa import _base
# assume obj is a oaMapWindow
obj.getLoc(offsetIn)
obj.operator[](index)
绑定状态: 已绑定
Python 调用: obj.operator[](index)
Python 示例
from oapy._oa import _base
# assume obj is a oaMapWindow
obj.operator[](index)
obj.getBytes(loc)
绑定状态: 已绑定
Python 调用: obj.getBytes(loc)
This function returns the byte pointer pointing to the specified location。
Python 示例
from oapy._oa import _base
# assume obj is a oaMapWindow
obj.getBytes(loc)
obj.data()
绑定状态: 已绑定
Python 调用: obj.data()
This function returns a reference to the oaPackedData interface that is associated with this mapWindow。 Use this function to access the functions on oaPackedData to read and write data from and to this mapWindow。
Python 示例
from oapy._oa import _base
# assume obj is a oaMapWindow
obj.data()