From 3b90fe873396c5ec03dacf29b01a2653a3e45c96 Mon Sep 17 00:00:00 2001 From: ejakowatz Date: Mon, 2 Sep 2002 04:43:19 +0000 Subject: [PATCH] This has been merged into DataIO.h. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@956 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/support/MallocIO.h | 45 ----------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 headers/os/support/MallocIO.h diff --git a/headers/os/support/MallocIO.h b/headers/os/support/MallocIO.h deleted file mode 100644 index 7d27b36ab2..0000000000 --- a/headers/os/support/MallocIO.h +++ /dev/null @@ -1,45 +0,0 @@ -// MallocIO.h -// Just here to be able to compile and test BResources. -// To be replaced by the OpenBeOS version to be provided by the IK Team. - -#ifndef _sk_malloc_io_h -#define _sk_malloc_io_h - -#include - -class BMallocIO : public BPositionIO { -public: - BMallocIO(); - virtual ~BMallocIO(); - - virtual ssize_t ReadAt(off_t pos, void *buffer, size_t size); - virtual ssize_t WriteAt(off_t pos, const void *buffer, size_t size); - - virtual off_t Seek(off_t pos, uint32 seekMode); - virtual off_t Position() const; - virtual status_t SetSize(off_t size); - - void SetBlockSize(size_t blockSize); - - const void *Buffer() const; - size_t BufferLength() const; - -private: - status_t _Resize(off_t size); - - virtual void _ReservedMallocIO1(); - virtual void _ReservedMallocIO2(); - - BMallocIO(const BMallocIO &); - BMallocIO &operator=(const BMallocIO &); - -private: - size_t fBlockSize; - size_t fMallocSize; - size_t fLength; - char *fData; - off_t fPosition; - int32 _reserved[1]; -}; - -#endif // _sk_malloc_io_h