Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3720)

Unified Diff: base/big_endian.cc

Issue 427153002: Add unsigned 64-bit integer support to BigEndianReader and BigEndianWriter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/big_endian.h ('k') | base/big_endian_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/big_endian.cc
diff --git a/base/big_endian.cc b/base/big_endian.cc
index fd9e7600ac17d79ce00cbbd7719a1331b5a5aa1b..9b69147a316e1f325e7e4304d8998750caca48f2 100644
--- a/base/big_endian.cc
+++ b/base/big_endian.cc
@@ -55,6 +55,10 @@ bool BigEndianReader::ReadU32(uint32* value) {
return Read(value);
}
+bool BigEndianReader::ReadU64(uint64* value) {
+ return Read(value);
+}
+
BigEndianWriter::BigEndianWriter(char* buf, size_t len)
: ptr_(buf), end_(ptr_ + len) {}
@@ -94,4 +98,8 @@ bool BigEndianWriter::WriteU32(uint32 value) {
return Write(value);
}
+bool BigEndianWriter::WriteU64(uint64 value) {
+ return Write(value);
+}
+
} // namespace base
« no previous file with comments | « base/big_endian.h ('k') | base/big_endian_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698