2 * Copyright 2014, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
12 class BFdIO
: public BPositionIO
{
15 BFdIO(int fd
, bool keepFd
);
18 void SetTo(int fd
, bool keepFd
);
21 virtual ssize_t
Read(void* buffer
, size_t size
);
22 virtual ssize_t
Write(const void* buffer
, size_t size
);
24 virtual ssize_t
ReadAt(off_t position
, void* buffer
,
26 virtual ssize_t
WriteAt(off_t position
, const void* buffer
,
29 virtual off_t
Seek(off_t position
, uint32 seekMode
);
30 virtual off_t
Position() const;
32 virtual status_t
SetSize(off_t size
);
33 virtual status_t
GetSize(off_t
* _size
) const;
36 BFdIO(const BFdIO
& other
);
37 BFdIO
& operator=(const BFdIO
& other
);