24 virtual void WriteBytes(
const void *inData,
size_t inNumBytes)
override { mWrapped.write((
const char *)inData, inNumBytes); }
27 virtual bool IsFailed()
const override {
return mWrapped.fail(); }
41 virtual void ReadBytes(
void *outData,
size_t inNumBytes)
override { mWrapped.read((
char *)outData, inNumBytes); }
44 virtual bool IsEOF()
const override {
return mWrapped.eof(); }
47 virtual bool IsFailed()
const override {
return mWrapped.fail(); }
#define JPH_SUPPRESS_WARNINGS_STD_BEGIN
Definition: Core.h:383
#define JPH_SUPPRESS_WARNINGS_STD_END
Definition: Core.h:395
#define JPH_NAMESPACE_END
Definition: Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
Simple binary input stream.
Definition: StreamIn.h:13
Wrapper around std::istream.
Definition: StreamWrapper.h:35
virtual bool IsFailed() const override
Returns true if there was an IO failure.
Definition: StreamWrapper.h:47
StreamInWrapper(istream &ioWrapped)
Constructor.
Definition: StreamWrapper.h:38
virtual void ReadBytes(void *outData, size_t inNumBytes) override
Write a string of bytes to the binary stream.
Definition: StreamWrapper.h:41
virtual bool IsEOF() const override
Returns true when an attempt has been made to read past the end of the file.
Definition: StreamWrapper.h:44
Simple binary output stream.
Definition: StreamOut.h:13
Wrapper around std::ostream.
Definition: StreamWrapper.h:18
virtual bool IsFailed() const override
Returns true if there was an IO failure.
Definition: StreamWrapper.h:27
StreamOutWrapper(ostream &ioWrapped)
Constructor.
Definition: StreamWrapper.h:21
virtual void WriteBytes(const void *inData, size_t inNumBytes) override
Write a string of bytes to the binary stream.
Definition: StreamWrapper.h:24