mirror of
https://github.com/tribes2/engine.git
synced 2026-03-19 12:20:46 +00:00
t2 engine svn checkout
This commit is contained in:
commit
ff569bd2ae
988 changed files with 394180 additions and 0 deletions
49
core/resizeStream.h
Normal file
49
core/resizeStream.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// V12 Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _RESIZESTREAM_H_
|
||||
#define _RESIZESTREAM_H_
|
||||
|
||||
//Includes
|
||||
#ifndef _PLATFORM_H_
|
||||
#include "Platform/platform.h"
|
||||
#endif
|
||||
#ifndef _FILTERSTREAM_H_
|
||||
#include "Core/filterStream.h"
|
||||
#endif
|
||||
|
||||
class ResizeFilterStream : public FilterStream
|
||||
{
|
||||
typedef FilterStream Parent;
|
||||
|
||||
Stream* m_pStream;
|
||||
U32 m_startOffset;
|
||||
U32 m_streamLen;
|
||||
U32 m_currOffset;
|
||||
|
||||
public:
|
||||
ResizeFilterStream();
|
||||
~ResizeFilterStream();
|
||||
|
||||
bool attachStream(Stream* io_pSlaveStream);
|
||||
void detachStream();
|
||||
Stream* getStream();
|
||||
|
||||
bool setStreamOffset(const U32 in_startOffset,
|
||||
const U32 in_streamLen);
|
||||
|
||||
// Mandatory overrides.
|
||||
protected:
|
||||
bool _read(const U32 in_numBytes, void* out_pBuffer);
|
||||
public:
|
||||
U32 getPosition() const;
|
||||
bool setPosition(const U32 in_newPosition);
|
||||
|
||||
U32 getStreamSize();
|
||||
};
|
||||
|
||||
#endif //_RESIZESTREAM_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue