2 * Copyright 2003-2013, Axel Dörfler, axeld@pinc-software.de.
3 * This file may be used under the terms of the MIT License.
13 File::File(Volume
&volume
, block_run run
)
20 File::File(Volume
&volume
, off_t id
)
27 File::File(const Stream
&stream
)
42 return fStream
.InitCheck();
47 File::ReadAt(void *cookie
, off_t pos
, void *buffer
, size_t bufferSize
)
49 status_t status
= fStream
.ReadAt(pos
, (uint8
*)buffer
, &bufferSize
);
58 File::WriteAt(void *cookie
, off_t pos
, const void *buffer
, size_t bufferSize
)
65 File::GetName(char *nameBuffer
, size_t bufferSize
) const
67 return fStream
.GetName(nameBuffer
, bufferSize
);
81 return fStream
.Size();