MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / ~Decoder

Method ~Decoder

runtime/Log.cc:1098–1110  ·  view source on GitHub ↗

* Decoder destructor */

Source from the content-addressed store, hash-verified

1096 * Decoder destructor
1097 */
1098Log::Decoder::~Decoder() {
1099 if (inputFd)
1100 fclose(inputFd);
1101
1102 filename.clear();
1103 inputFd = nullptr;
1104 good = false;
1105
1106 for (BufferFragment *bf : freeBuffers)
1107 delete bf;
1108
1109 freeBuffers.clear();
1110}
1111
1112/**
1113 * Allocates a BufferFragment to read BufferExtents into

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64