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

Function Uint64ToHexString

tensorflow/core/lib/strings/numbers.cc:403–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403StringPiece Uint64ToHexString(uint64 v, char* buf) {
404 static const char* hexdigits = "0123456789abcdef";
405 const int num_byte = 16;
406 buf[num_byte] = '\0';
407 for (int i = num_byte - 1; i >= 0; i--) {
408 buf[i] = hexdigits[v & 0xf];
409 v >>= 4;
410 }
411 return StringPiece(buf, num_byte);
412}
413
414bool HexStringToUint64(const StringPiece& s, uint64* result) {
415 uint64 v = 0;

Callers 2

CreateKeyMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68