MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / copyTo

Method copyTo

src/common/classes/MetaString.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111FB_SIZE_T MetaString::copyTo(char* to, FB_SIZE_T toSize) const
112{
113 fb_assert(to);
114 fb_assert(toSize);
115 if (--toSize > length())
116 {
117 toSize = length();
118 }
119 memcpy(to, c_str(), toSize);
120 to[toSize] = 0;
121 return toSize;
122}
123
124} // namespace Firebird

Callers 2

fb_msg_formatFunction · 0.45
testFunction · 0.45

Calls 1

lengthFunction · 0.50

Tested by 1

testFunction · 0.36