MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / STLStringResizeUninitialized

Function STLStringResizeUninitialized

tensorflow/core/lib/gtl/stl_util.h:84–86  ·  view source on GitHub ↗

Like str->resize(new_size), except any new characters added to "*str" as a result of resizing may be left uninitialized, rather than being filled with '0' bytes. Typically used when code is then going to overwrite the backing store of the string with known data.

Source from the content-addressed store, hash-verified

82// '0' bytes. Typically used when code is then going to overwrite the backing
83// store of the string with known data.
84inline void STLStringResizeUninitialized(string* s, size_t new_size) {
85 gtl_internal::ResizeUninitializedTraits<string>::Resize(s, new_size);
86}
87
88// Calls delete (non-array version) on the SECOND item (pointer) in each pair in
89// the range [begin, end).

Callers 7

StrCatFunction · 0.85
CatPiecesFunction · 0.85
AppendPiecesFunction · 0.85
StrAppendFunction · 0.85
ReadFileSliceMethod · 0.85
ReadFileToStringFunction · 0.85
DecodeStringListFunction · 0.85

Calls 1

ResizeFunction · 0.50

Tested by

no test coverage detected