|
366 |
m_file.write ((const char *)&header.m_tsUsec, sizeof(header.m_tsUsec)); |
366 |
m_file.write ((const char *)&header.m_tsUsec, sizeof(header.m_tsUsec)); |
367 |
m_file.write ((const char *)&header.m_inclLen, sizeof(header.m_inclLen)); |
367 |
m_file.write ((const char *)&header.m_inclLen, sizeof(header.m_inclLen)); |
368 |
m_file.write ((const char *)&header.m_origLen, sizeof(header.m_origLen)); |
368 |
m_file.write ((const char *)&header.m_origLen, sizeof(header.m_origLen)); |
|
|
369 |
m_file.flush(); |
369 |
return inclLen; |
370 |
return inclLen; |
370 |
} |
371 |
} |
371 |
|
372 |
|
|
374 |
{ |
375 |
{ |
375 |
uint32_t inclLen = WritePacketHeader (tsSec, tsUsec, totalLen); |
376 |
uint32_t inclLen = WritePacketHeader (tsSec, tsUsec, totalLen); |
376 |
m_file.write ((const char *)data, inclLen); |
377 |
m_file.write ((const char *)data, inclLen); |
|
|
378 |
m_file.flush(); |
377 |
} |
379 |
} |
378 |
|
380 |
|
379 |
void |
381 |
void |
|
381 |
{ |
383 |
{ |
382 |
uint32_t inclLen = WritePacketHeader (tsSec, tsUsec, p->GetSize ()); |
384 |
uint32_t inclLen = WritePacketHeader (tsSec, tsUsec, p->GetSize ()); |
383 |
p->CopyData (&m_file, inclLen); |
385 |
p->CopyData (&m_file, inclLen); |
|
|
386 |
m_file.flush(); |
384 |
} |
387 |
} |
385 |
|
388 |
|
386 |
void |
389 |
void |
|
397 |
headerBuffer.CopyData (&m_file, toCopy); |
400 |
headerBuffer.CopyData (&m_file, toCopy); |
398 |
inclLen -= toCopy; |
401 |
inclLen -= toCopy; |
399 |
p->CopyData (&m_file, inclLen); |
402 |
p->CopyData (&m_file, inclLen); |
|
|
403 |
m_file.flush(); |
400 |
} |
404 |
} |
401 |
|
405 |
|
402 |
void |
406 |
void |