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

Function ReadJsonInt

tensorflow/core/platform/cloud/oauth_client.cc:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76Status ReadJsonInt(const Json::Value& json, const string& name, int64* value) {
77 Json::Value json_value;
78 TF_RETURN_IF_ERROR(ReadJsonValue(json, name, &json_value));
79 if (!json_value.isIntegral()) {
80 return errors::FailedPrecondition(
81 strings::StrCat("JSON value '", name, "' is not integer."));
82 }
83 *value = json_value.asInt64();
84 return Status::OK();
85}
86
87Status CreateSignature(RSA* private_key, StringPiece to_sign,
88 string* signature) {

Callers 1

ParseOAuthResponseMethod · 0.85

Calls 3

ReadJsonValueFunction · 0.85
FailedPreconditionFunction · 0.85
StrCatFunction · 0.50

Tested by

no test coverage detected