2 ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the MIT License.
14 class Handle
: public Node
{
16 Handle(int handle
, bool takeOwnership
= true);
17 Handle(const char *path
);
23 void SetTo(int handle
, bool takeOwnership
= true);
25 virtual ssize_t
ReadAt(void *cookie
, off_t pos
, void *buffer
, size_t bufferSize
);
26 virtual ssize_t
WriteAt(void *cookie
, off_t pos
, const void *buffer
, size_t bufferSize
);
28 virtual status_t
GetName(char *nameBuffer
, size_t bufferSize
) const;
29 virtual off_t
Size() const;
37 #endif /* __cplusplus */