MCPcopy Create free account
hub / github.com/cinience/RedisStudio / SetLength

Method SetLength

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

Source from the content-addressed store, hash-verified

1493
1494 inline static bool Usable(SizeType len) { return (MaxSize >= len); }
1495 inline void SetLength(SizeType len) { str[LenPos] = (Ch)(MaxSize - len); }
1496 inline SizeType GetLength() const { return (SizeType)(MaxSize - str[LenPos]); }
1497 }; // at most as many bytes as "String" above => 12 bytes in 32-bit mode, 16 bytes in 64-bit mode
1498

Callers 2

GenericValueFunction · 0.80
SetStringRawFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected