10000 Automated Code Change · IBMZ-Linux-OSS-Python/tensorflow@78763a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 78763a2

Browse files
Automated Code Change
PiperOrigin-RevId: 673350310
1 parent ba1b5c5 commit 78763a2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

third_party/xla/third_party/tsl/tsl/platform/coding.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ const char* GetVarint32PtrFallback(const char* p, const char* limit,
177177
return nullptr;
178178
}
179179

180-
bool GetVarint32(StringPiece* input, uint32* value) {
180+
bool GetVarint32(absl::string_view* input, uint32* value) {
181181
const char* p = input->data();
182182
const char* limit = p + input->size();
183183
const char* q = GetVarint32Ptr(p, limit, value);
184184
if (q == nullptr) {
185185
return false;
186186
} else {
187-
*input = StringPiece(q, limit - q);
187+
*input = absl::string_view(q, limit - q);
188188
return true;
189189
}
190190
}
@@ -206,14 +206,14 @@ const char* GetVarint64Ptr(const char* p, const char* limit, uint64* value) {
206206
return nullptr;
207207
}
208208

209-
bool GetVarint64(StringPiece* input, uint64* value) {
209+
bool GetVarint64(absl::string_view* input, uint64* value) {
210210
const char* p = input->data();
211211
const char* limit = p + input->size();
212212
const char* q = GetVarint64Ptr(p, limit, value);
213213
if (q == nullptr) {
214214
return false;
215215
} else {
216-
*input = StringPiece(q, limit - q);
216+
*input = absl::string_view(q, limit - q);
217217
return true;
218218
}
219219
}

third_party/xla/third_party/tsl/tsl/platform/coding.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ extern void PutVarint64(string* dst, uint64 value);
4949
extern void PutVarint32(tstring* dst, uint32 value);
5050
extern void PutVarint64(tstring* dst, uint64 value);
5151

52-
extern bool GetVarint32(StringPiece* input, uint32* value);
53-
extern bool GetVarint64(StringPiece* input, uint64* value);
52+
extern bool GetVarint32(absl::string_view* input, uint32* value);
53+
extern bool GetVarint64(absl::string_view* input, uint64* value);
5454

5555
extern const char* GetVarint32Ptr(const char* p, const char* limit, uint32* v);
5656
extern const char* GetVarint64Ptr(const char* p, const char* limit, uint64* v);

0 commit comments

Comments
 (0)
0