MCPcopy Create free account
hub / github.com/anyrtcIO-Community/anyRTC-RTMP-OpenSource / transform

Function transform

webrtc/base/stringencode.cc:540–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540size_t transform(std::string& value, size_t maxlen, const std::string& source,
541 Transform t) {
542 char* buffer = STACK_ARRAY(char, maxlen + 1);
543 size_t length = t(buffer, maxlen + 1, source.data(), source.length());
544 value.assign(buffer, length);
545 return length;
546}
547
548std::string s_transform(const std::string& source, Transform t) {
549 // Ask transformation function to approximate the destination size (returns upper bound)

Callers 3

GetAppDataFolderMethod · 0.85
GetChainMethod · 0.85
CombineMethod · 0.85

Calls 3

dataMethod · 0.45
lengthMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected