MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / SetLength

Method SetLength

rapidjson/document.h:1917–1917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915
1916 inline static bool Usable(SizeType len) { return (MaxSize >= len); }
1917 inline void SetLength(SizeType len) { str[LenPos] = static_cast<Ch>(MaxSize - len); }
1918 inline SizeType GetLength() const { return static_cast<SizeType>(MaxSize - str[LenPos]); }
1919 }; // at most as many bytes as "String" above => 12 bytes in 32-bit mode, 16 bytes in 64-bit mode
1920

Callers 2

GenericValueFunction · 0.80
SetStringRawFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected