MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / Detach

Method Detach

src/cryptlib/forkjoin.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void Fork::Detach(BufferedTransformation *newOut)
29{
30 TW_UNIQUE_PTR<BufferedTransformation> out(newOut ? newOut : new ByteQueue);
31 outPorts[currentPort]->Close();
32 outPorts[currentPort]->TransferTo(*out);
33 outPorts[currentPort].reset(out.release());
34}
35
36void Fork::Attach(BufferedTransformation *newOut)
37{

Callers

nothing calls this directly

Calls 4

TransferToMethod · 0.80
resetMethod · 0.80
releaseMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected