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

Unified Diff: runtime/bin/eventhandler_win.h

Issue 323823002: Correctly truncate in Windows eventhandler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « no previous file | runtime/bin/eventhandler_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_win.h
diff --git a/runtime/bin/eventhandler_win.h b/runtime/bin/eventhandler_win.h
index 4bac8f4f29cc2d3b88c1951219da6ac478be0570..fc6af0d8ef16bf0978ba4117a8aa8c1efee99ed5 100644
--- a/runtime/bin/eventhandler_win.h
+++ b/runtime/bin/eventhandler_win.h
@@ -189,15 +189,17 @@ class Handle {
virtual ~Handle();
// Socket interface exposing normal socket operations.
- int Available();
- int Read(void* buffer, int num_bytes);
- int RecvFrom(
- void* buffer, int num_bytes, struct sockaddr* sa, socklen_t addr_len);
- virtual int Write(const void* buffer, int num_bytes);
- virtual int SendTo(const void* buffer,
- int num_bytes,
- struct sockaddr* sa,
- socklen_t sa_len);
+ intptr_t Available();
+ intptr_t Read(void* buffer, intptr_t num_bytes);
+ intptr_t RecvFrom(void* buffer,
+ intptr_t num_bytes,
+ struct sockaddr* sa,
+ socklen_t addr_len);
+ virtual intptr_t Write(const void* buffer, intptr_t num_bytes);
+ virtual intptr_t SendTo(const void* buffer,
+ intptr_t num_bytes,
+ struct sockaddr* sa,
+ socklen_t sa_len);
// Internal interface used by the event handler.
virtual bool IssueRead();
@@ -324,7 +326,7 @@ class StdHandle : public FileHandle {
}
virtual void DoClose();
- virtual int Write(const void* buffer, int num_bytes);
+ virtual intptr_t Write(const void* buffer, intptr_t num_bytes);
void WriteSyncCompleteAsync();
void RunWriteLoop();
« no previous file with comments | « no previous file | runtime/bin/eventhandler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698