2 * Copyright 2008, Jérôme Duval. All rights reserved.
3 * Distributed under the terms of the MIT License.
7 #include "IStreamWrapper.h"
9 IStreamWrapper::IStreamWrapper(const char *filename
, BPositionIO
*stream
)
16 IStreamWrapper::~IStreamWrapper()
22 IStreamWrapper::read(char c
[/*n*/], int n
)
24 int actual
= fStream
.Read(c
, n
);
33 IStreamWrapper::tellg()
35 return fStream
.Position();
40 IStreamWrapper::seekg(Int64 pos
)
42 fStream
.Seek(pos
, SEEK_SET
);