gwnavruntime/visualdebug/amp/Amp_Stream.h Source File
Go to the documentation of this file.
16 #ifndef INC_KY_AMP_STREAM_H
17 #define INC_KY_AMP_STREAM_H
34 class AmpStream :
public File
40 AmpStream(
const UByte* buffer, UPInt bufferSize);
43 virtual const char* GetFilePath() {
return ""; }
44 virtual bool IsValid() {
return true; }
45 virtual bool IsWritable() {
return true; }
47 virtual SInt64 LTell () {
return Tell(); }
48 virtual int GetLength () {
return static_cast<int>(Data.GetSize()); }
49 virtual SInt64 LGetLength () {
return GetLength(); }
50 virtual int GetErrorCode() {
return 0; }
51 virtual bool Flush() {
return true; }
52 virtual bool Close() {
return false; }
53 virtual int Write(
const UByte *pbufer,
int numBytes);
54 virtual int Read(UByte *pbufer,
int numBytes);
55 virtual int SkipBytes(
int numBytes);
56 virtual int BytesAvailable();
57 virtual int Seek(
int offset,
int origin=Seek_Set);
58 virtual SInt64 LSeek(SInt64 offset,
int origin=Seek_Set);
59 virtual bool ChangeSize(
int newSize);
60 virtual int CopyFromStream(File *pstream,
int byteSize);
64 void Write(File& str)
const;
67 void Append(
const UByte* buffer, UPInt bufferSize);
70 const UByte* GetBuffer()
const;
71 UPInt GetBufferSize()
const;
80 UPInt FirstMessageSize();
81 bool PopFirstMessage();
84 typedef ArrayConstPolicy<0, 4, true> NeverShrinkPolicy;
85 ArrayLH<UByte, Stat_Default_Mem, NeverShrinkPolicy> Data;
90 void IncreaseMessageSize(UInt32 newSize);
Definition: gamekitcrowddispersion.h:20