MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / GrowableBuffer

Function GrowableBuffer

Libraries/Memory/String.h:205–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203{
204 String::GrowableImplementation gi;
205 GrowableBuffer(String& string)
206 : IGrowableBuffer(&GrowableBuffer::tryGrowTo), gi(string, IGrowableBuffer::directAccess)
207 {}
208 static bool tryGrowTo(IGrowableBuffer& gb, size_t newSize) noexcept
209 {
210 return static_cast<GrowableBuffer&>(gb).gi.tryGrowTo(newSize);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected