Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10)

Unified Diff: src/processor/binarystream.h

Issue 535002: Use stdint types everywhere. (Closed)
Patch Set: Renamed uint128_t to uint128_struct Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/processor/binarystream.h
===================================================================
--- a/src/processor/binarystream.h
+++ b/src/processor/binarystream.h
@@ -51,27 +51,27 @@ class binarystream {
explicit binarystream(const string &str,
ios_base::openmode which = ios_base::out|ios_base::in)
: stream_(str, which) {}
explicit binarystream(const char *str, size_t size,
ios_base::openmode which = ios_base::out|ios_base::in)
: stream_(string(str, size), which) {}
binarystream &operator>>(string &str);
- binarystream &operator>>(u_int8_t &u8);
- binarystream &operator>>(u_int16_t &u16);
- binarystream &operator>>(u_int32_t &u32);
- binarystream &operator>>(u_int64_t &u64);
+ binarystream &operator>>(uint8_t &u8);
+ binarystream &operator>>(uint16_t &u16);
+ binarystream &operator>>(uint32_t &u32);
+ binarystream &operator>>(uint64_t &u64);
// Note: strings are truncated at 65535 characters
binarystream &operator<<(const string &str);
- binarystream &operator<<(u_int8_t u8);
- binarystream &operator<<(u_int16_t u16);
- binarystream &operator<<(u_int32_t u32);
- binarystream &operator<<(u_int64_t u64);
+ binarystream &operator<<(uint8_t u8);
+ binarystream &operator<<(uint16_t u16);
+ binarystream &operator<<(uint32_t u32);
+ binarystream &operator<<(uint64_t u64);
// Forward a few methods directly from the stream object
bool eof() const { return stream_.eof(); }
void clear() { stream_.clear(); }
string str() const { return stream_.str(); }
void str(const string &s) { stream_.str(s); }
// Seek both read and write pointers to the beginning of the stream.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted