diff options
author | Nicolas Noble <pixel@nobis-crew.org> | 2013-08-07 16:32:26 -0700 |
---|---|---|
committer | Nicolas Noble <pixel@nobis-crew.org> | 2013-08-07 16:32:40 -0700 |
commit | df00882195da3fb970782f21d79a0a10e6b186b3 (patch) | |
tree | f6626a204b464d02768a006a10d465620af59cb6 /includes | |
parent | 7f841bd54b8628420b4bec129fae86472b5dc565 (diff) |
Adding readU16, readU32 and readU64. The Lua version of readU64 will need GMP support.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Handle.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/Handle.h b/includes/Handle.h index 3a26282..06b1723 100644 --- a/includes/Handle.h +++ b/includes/Handle.h @@ -61,7 +61,10 @@ class Handle { void seek(off_t offset, int whence = SEEK_SET) { rseek(offset, whence); } // there need to be more of these - Future<uint8_t> readU8(); + Future<uint8_t> readU8(); + Future<uint16_t> readU16(); + Future<uint32_t> readU32(); + Future<uint64_t> readU64(); // these need to be changed into Future<>s void writeString(const char * str, ssize_t len) { if (len < 0) len = strlen(str); forceWrite(str, len); } |