MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / get

Method get

source/binding/Python/maa/buffer.py:38–46  ·  view source on GitHub ↗

获取缓冲区内容 / Get buffer content Returns: str: 字符串内容 / String content

(self)

Source from the content-addressed store, hash-verified

36 Library.framework().MaaStringBufferDestroy(self._handle)
37
38 def get(self) -> str:
39 """获取缓冲区内容 / Get buffer content
40
41 Returns:
42 str: 字符串内容 / String content
43 """
44 buff = Library.framework().MaaStringBufferGet(self._handle)
45 sz = Library.framework().MaaStringBufferSize(self._handle)
46 return ctypes.string_at(buff, sz).decode()
47
48 def set(self, value: Union[str, bytes]) -> bool:
49 """设置缓冲区内容 / Set buffer content

Callers 15

get_node_dataMethod · 0.95
get_anchorMethod · 0.95
get_node_dataMethod · 0.95
hashMethod · 0.95
get_action_detailMethod · 0.95
get_node_detailMethod · 0.95
get_task_detailMethod · 0.95
shell_outputMethod · 0.95

Calls 2

frameworkMethod · 0.80
decodeMethod · 0.80

Tested by

no test coverage detected