2 * Copyright 2009-2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
14 class BFileIO
: public BPositionIO
{
17 bool takeOverOwnership
= false);
20 virtual ssize_t
Read(void *buffer
, size_t size
);
21 virtual ssize_t
Write(const void *buffer
, size_t size
);
23 virtual ssize_t
ReadAt(off_t position
, void *buffer
,
25 virtual ssize_t
WriteAt(off_t position
, const void *buffer
,
28 virtual off_t
Seek(off_t position
, uint32 seekMode
);
29 virtual off_t
Position() const;
31 virtual status_t
SetSize(off_t size
);
32 virtual status_t
GetSize(off_t
* size
) const;
35 BFileIO(const BFileIO
& other
);
36 BFileIO
& operator=(const BFileIO
& other
);
38 off_t
_Seek(off_t position
, uint32 seekMode
) const;