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

Function MaaStringListBufferRemove

source/Common/MaaBuffer.cpp:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146MaaBool MaaStringListBufferRemove(MaaStringListBuffer* handle, MaaSize index)
147{
148 if (!handle) {
149 LogError << "handle is null";
150 return false;
151 }
152 if (index >= handle->size()) {
153 LogError << "out of range" << VAR(index) << VAR(handle->size());
154 return false;
155 }
156
157 handle->remove(index);
158 return true;
159}
160
161MaaBool MaaStringListBufferClear(MaaStringListBuffer* handle)
162{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected