首页 / common / IString

IString

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

概览

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

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

详细说明

This is a simple string interface。 Its purpose is to control the lifetime of the character buffer that a component wants to pass out of an interface function。 See the various implementation of IString to see what options a component developer has for passing strings out of interface functions。

方法总览

状态 Python 调用
obj.str()

方法说明

obj.str()

绑定状态: 已绑定

Python 调用: obj.str()

This function returns a pointer to the character buffer of the string。 It is guaranteed to be valid while the IString exists。 When the final release of the IString is called, this pointer may no longer be valid。 由 StringImp、StaticString 和 StlIString 实现。

Python 示例

from oapy._oa import _common

# assume obj is a IString
obj.str()