18 #define DEFAULT_CHUNK_DATA_SIZE 16384 // 16 KB (EVB) 20 #define DEFAULT_CHUNK_DATA_SIZE 131072 // 128 KB 23 #define DATA_CHUNK_MARKER 0xFC05EA32 30 #define LOG_DEBUG_WRITE 0 // Enable debug printout 31 #define LOG_DEBUG_READ 0 32 #define LOG_CHUNK_STATS 0 // 0 = disabled, 1 = summary, 2 = detailed 36 void logStats(
const char *format, ...);
59 logStats(
" marker: %u (0x%x)\n", marker, marker );
60 logStats(
" version: %d\n", version );
61 logStats(
" classification: %d\n", classification );
62 logStats(
" name: %c%c%c%c\n", name[0], name[1], name[2], name[3] );
63 logStats(
" invName: %c%c%c%c\n", invName[0], invName[1], invName[2], invName[3] );
64 logStats(
" dataSize: %d\n", dataSize );
65 logStats(
" invDataSize: %d\n", invDataSize );
67 logStats(
" devSerialNum: %d\n", devSerialNum );
68 logStats(
" pHandle: %d\n", pHandle );
69 logStats(
" reserved: %d\n", reserved );
82 uint32_t
GetBuffSize() {
return (uint32_t)(m_buffTail - m_buffHead); }
83 uint32_t
GetBuffFree() {
return (uint32_t)(m_buffTail - m_dataTail); }
84 uint32_t
GetDataSize() {
return (uint32_t)(m_dataTail - m_dataHead); }
85 void SetName(
const char name[4]);
86 uint8_t* GetDataPtr();
87 bool PopFront(uint32_t size);
90 bool PushBack(uint8_t* d1, uint32_t d1Size, uint8_t* d2 =
NULL, uint32_t d2Size = 0);
106 virtual int32_t WriteAdditionalChunkHeader(
cISLogFileBase* pFile);
108 virtual int32_t GetHeaderSize();
118 #endif // DATA_CHUNK_H
#define DEFAULT_CHUNK_DATA_SIZE
size_t count(InputIterator first, InputIterator last, T const &item)
ROSCONSOLE_DECL void print(FilterBase *filter, void *logger, Level level, const char *file, int line, const char *function, const char *fmt,...) ROSCONSOLE_PRINTF_ATTRIBUTE(7
void logStats(const char *format,...)
Chunk Header.