MCPcopy Create free account
hub / github.com/MoeMod/CSMoE / string_as_array

Function string_as_array

SourceSDK/tier1/snappy-stubs-internal.h:487–489  ·  view source on GitHub ↗

Return a mutable char* pointing to a string's internal buffer, which may not be null-terminated. Writing through this pointer will modify the string. string_as_array(&str)[i] is valid for 0 <= i < str.size() until the next call to a string method that invalidates iterators. As of 2006-04, there is no standard-blessed way of getting a mutable reference to a string's internal buffer. However, issu

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

UncompressFunction · 0.85
CompressFunction · 0.85

Calls 2

emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected