Added BPositionIO::GetSize() and implemented it by means of Seek() and

Position(). This used up a virtual slot of BPositionIO. GetSize() needed to be
implemented in BFile, which uses the BStatable version as before. This should
hopefully be binary compatible. The only problem could be in source
compatibility when there are classes inheriting from BPositionIO implementing
their own GetSize().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17593 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2006-05-26 13:27:53 +00:00
parent 0cd4c8ae6c
commit 39c991c0f3
4 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -80,9 +80,9 @@ public:
virtual off_t Position() const = 0;
virtual status_t SetSize(off_t size);
virtual status_t GetSize(off_t* size) const;
private:
virtual void _ReservedPositionIO1();
virtual void _ReservedPositionIO2();
virtual void _ReservedPositionIO3();
virtual void _ReservedPositionIO4();