From 2462938c3a4ded082871d860422773ec272b8bae Mon Sep 17 00:00:00 2001 From: ksherlock Date: Tue, 24 Nov 2009 04:04:42 +0000 Subject: [PATCH] git-svn-id: https://profuse.googlecode.com/svn/branches/v2@100 aa027e90-d47c-11dd-86d7-074df07e0730 --- MappedFile.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/MappedFile.h b/MappedFile.h index 9414067..009c8bc 100644 --- a/MappedFile.h +++ b/MappedFile.h @@ -8,10 +8,6 @@ namespace ProFUSE { -enum { - LittleEndian = 0x3412, - BigEndian = 0x1234 -}; class MappedFile { public: @@ -41,20 +37,7 @@ public: size_t fileSize() const { return _size; } void *fileData() const { return _map; } - uint8_t read8(size_t location) const - { - return ((uint8_t *)_map)[location]; - } - uint16_t read16(size_t location, int byteOrder) const; - uint32_t read32(size_t location, int byteOrder) const; - - void write8(size_t location, uint8_t data) - { - ((uint8_t *)_map)[location] = data; - } - void write16(size_t location, uint16_t data, int byteOrder); - void write32(size_t location, uint32_t data, int byteOrder); - + private: MappedFile& operator=(const MappedFile& other);