MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / MVOL_write

Function MVOL_write

src/burp/mvol.cpp:1103–1118  ·  view source on GitHub ↗

____________________________________________________________ Write a buffer's worth of data.

Source from the content-addressed store, hash-verified

1101// Write a buffer's worth of data.
1102//
1103void MVOL_write(BurpGlobals* tdgbl)
1104{
1105 if (!tdgbl->master)
1106 {
1107 BackupRelationTask::renewBuffer(tdgbl);
1108 return;
1109 }
1110
1111 fb_assert(tdgbl->gbl_io_ptr >= tdgbl->gbl_compress_buffer);
1112 fb_assert(tdgbl->gbl_io_ptr <= tdgbl->gbl_compress_buffer + ZC_BUFSIZE);
1113
1114 zip_write_block(tdgbl, tdgbl->gbl_compress_buffer, tdgbl->gbl_io_ptr - tdgbl->gbl_compress_buffer, false);
1115
1116 tdgbl->gbl_io_cnt = ZC_BUFSIZE;
1117 tdgbl->gbl_io_ptr = tdgbl->gbl_compress_buffer;
1118}
1119
1120UCHAR mvol_write(const UCHAR c, int* io_cnt, UCHAR** io_ptr)
1121{

Callers 1

putMethod · 0.85

Calls 1

zip_write_blockFunction · 0.85

Tested by

no test coverage detected