summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-29 18:00:19 -0800
committerPixel <pixel@nobis-crew.org>2011-11-29 18:00:19 -0800
commitbe645274c6adf412b0e01aa664e8b29a3c91ea26 (patch)
tree067ae375907fa3160d187716f8e550bb97f1bb6d /includes
parent47dc3dd1a91dccc72e86e930b9a098ffbe10ff1a (diff)
Having a forceWrite that takes a string.
Diffstat (limited to 'includes')
-rw-r--r--includes/Handle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/Handle.h b/includes/Handle.h
index d205925..cc66a22 100644
--- a/includes/Handle.h
+++ b/includes/Handle.h
@@ -52,6 +52,7 @@ class Handle {
ssize_t forceRead(void * buf, size_t count, Events::BaseEvent * evt = NULL) throw (GeneralException);
ssize_t forceWrite(const void * buf, size_t count, Events::BaseEvent * evt = NULL) throw (GeneralException);
ssize_t write(const String & str) { return write(str.to_charp(), str.strlen()); }
+ ssize_t forceWrite(const String & str) { return forceWrite(str.to_charp(), str.strlen()); }
uint8_t readU8() { uint8_t r; read(&r, 1); return r; }
protected:
Handle() : m_refCount(0) { }