9 class OffsetFile
: public BPositionIO
{
12 OffsetFile(const BFile
& file
, off_t offset
);
13 virtual ~OffsetFile();
15 status_t
SetTo(const BFile
& file
, off_t offset
);
17 status_t
InitCheck() const;
19 // ssize_t Read(void *buffer, size_t size);
20 // ssize_t Write(const void *buffer, size_t size);
21 ssize_t
ReadAt(off_t pos
, void *buffer
, size_t size
);
22 ssize_t
WriteAt(off_t pos
, const void *buffer
,
24 off_t
Seek(off_t position
, uint32 seekMode
);
25 off_t
Position() const;
26 status_t
SetSize(off_t size
);
27 status_t
GetSize(off_t
* size
);
29 off_t
GetOffset() const;
34 off_t fCurrentPosition
;
37 #endif // OFFSET_FILE_H