MCPcopy Create free account
hub / github.com/alibaba/graph-learn / FastInt64ToBuffer

Function FastInt64ToBuffer

graphlearn/src/common/string/numeric.cc:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73char* FastInt64ToBuffer(int64_t i, char* buffer) {
74 uint64_t u = i;
75 if (i < 0) {
76 *buffer++ = '-';
77 u = 0 - u;
78 }
79 return FastUInt64ToBuffer(u, buffer);
80}
81
82char SafeFirstChar(LiteString str) {
83 if (str.empty()) {

Callers 1

Int64ToStringFunction · 0.85

Calls 1

FastUInt64ToBufferFunction · 0.85

Tested by

no test coverage detected