首页 / common / StaticString

StaticString

模块: oapy._oa._common 导入: from oapy._oa import _common

概览

StaticStringoapy 中可用,可通过 _common 模块访问。

本页汇总 StaticString 当前在 oapy 中可用的 Python 接口。

详细说明

This is an implementation of the IString interface that can be used to efficiently pass strings that will be valid for the life of the process (i.e。 static strings)。 The StaticString class assumes that it can copy the pointer value of the initialization string, rather than copying the contents of the buffer。 DO NOT USE THIS FOR NON-STATIC STRINGS! Clients of an interface that returns a StaticString as the implementation of the IString interface can hold the pointer to that interface for an arbitrarily long period of time。

构造函数

_common.StaticString(in)

obj = _common.StaticString(in)

方法总览

状态 Python 调用
obj.str()

方法说明

obj.str()

绑定状态: 已绑定

Python 调用: obj.str()

This function is used to access the actual character buffer controlled by the StringImp 。 实现 IString。

Python 示例

from oapy._oa import _common

# assume obj is a StaticString
obj.str()