gwnavruntime/visualdebug/amp/Amp_Stream.h Source File
Go to the documentation of this file.
33 class AmpStream :
public File
39 AmpStream(
const UByte* buffer, UPInt bufferSize);
42 virtual const char* GetFilePath() {
return ""; }
43 virtual bool IsValid() {
return true; }
44 virtual bool IsWritable() {
return true; }
46 virtual SInt64 LTell () {
return Tell(); }
47 virtual int GetLength () {
return static_cast<int>(Data.GetSize()); }
48 virtual SInt64 LGetLength () {
return GetLength(); }
49 virtual int GetErrorCode() {
return 0; }
50 virtual bool Flush() {
return true; }
51 virtual bool Close() {
return false; }
52 virtual int Write(
const UByte *pbufer,
int numBytes);
53 virtual int Read(
UByte *pbufer,
int numBytes);
54 virtual int SkipBytes(
int numBytes);
55 virtual int BytesAvailable();
56 virtual int Seek(
int offset,
int origin=Seek_Set);
57 virtual SInt64 LSeek(
SInt64 offset,
int origin=Seek_Set);
58 virtual bool ChangeSize(
int newSize);
59 virtual int CopyFromStream(File *pstream,
int byteSize);
63 void Write(File& str)
const;
66 void Append(
const UByte* buffer, UPInt bufferSize);
69 const UByte* GetBuffer()
const;
70 UPInt GetBufferSize()
const;
79 UPInt FirstMessageSize();
80 bool PopFirstMessage();
83 typedef ArrayConstPolicy<0, 4, true> NeverShrinkPolicy;
84 ArrayLH<UByte, Stat_Default_Mem, NeverShrinkPolicy> Data;
89 void IncreaseMessageSize(
UInt32 newSize);
std::int64_t SInt64
int64_t
Definition: SF_Types.h:132
std::uint8_t UByte
uint8_t
Definition: SF_Types.h:134
std::uint32_t UInt32
uint32_t
Definition: SF_Types.h:137
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17