28 #define DEBUGREC_OFF ++DoNoDebugRec;
29 #define DEBUGREC_ON --DoNoDebugRec;
250 bool fRecording{
false};
252 bool fStreaming{
false};
253 unsigned int iStreamingPos;
257 C4Record(
const char *szPlaybackFile,
const char *szRecordFile,
const char *szTempRecFile);
265 bool Start(
bool fInitial);
272 bool AddFile(
const char *szLocalFilename,
const char *szAddAs,
bool fDelete =
false);
282 bool StreamFile(
const char *szFilename,
const char *szAddAs);
288 typedef std::list<C4RecordChunk> chunks_t;
290 chunks_t::iterator currChunk;
293 bool fLoadSequential{
false};
295 uint32_t iLastSequentialFrame;
void AddDbgRec(C4RecordChunkType eType, const void *pData=nullptr, int iSize=0)
C4PktDebugRec(C4RecordChunkType eType, const StdBuf &rCpyData)
void CompileFunc(StdCompiler *pComp) override
C4RecordChunkType getType() const
C4PktDebugRec(const C4PktDebugRec &rCopy)=default
void Check(C4RecordChunkType eType, const uint8_t *pData, int iSize)
bool ExecuteControl(C4Control *pCtrl, int iFrame)
bool ReadBinary(const StdBuf &Buf)
static bool StreamToRecord(const char *szStream, StdStrBuf *pRecord)
bool ReadText(const StdStrBuf &Buf)
void DebugRecError(const char *szError)
bool NextSequentialChunk()
bool StartStreaming(bool fInitial)
bool AddFile(const char *szLocalFilename, const char *szAddAs, bool fDelete=false)
unsigned int GetStreamingPos() const
bool Stop(StdStrBuf *pRecordName=nullptr, BYTE *pRecordSHA1=nullptr)
bool Rec(const C4Control &Ctrl, int iFrame)
void ClearStreamingBuf(unsigned int iAmount)
bool Start(bool fInitial)
const StdBuf & GetStreamingBuf() const
C4Record(const char *szPlaybackFile, const char *szRecordFile, const char *szTempRecFile)
virtual ~C4RecordChunk()=default
virtual void CompileFunc(StdCompiler *pComp)