MCPcopy Create free account
hub / github.com/Tencent/rapidjson / Usable

Method Usable

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

Source from the content-addressed store, hash-verified

1872 Ch str[MaxChars];
1873
1874 inline static bool Usable(SizeType len) { return (MaxSize >= len); }
1875 inline void SetLength(SizeType len) { str[LenPos] = static_cast<Ch>(MaxSize - len); }
1876 inline SizeType GetLength() const { return static_cast<SizeType>(MaxSize - str[LenPos]); }
1877 }; // at most as many bytes as "String" above => 12 bytes in 32-bit mode, 16 bytes in 64-bit mode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected