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

Method CopyFrom

src/cryptlib/queue.cpp:107–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void ByteQueue::CopyFrom(const ByteQueue &copy)
108{
109 nodeSize = copy.nodeSize;
110 head = tail = new ByteQueueNode(*copy.head);
111
112 for (ByteQueueNode *current=copy.head->next; current; current=current->next)
113 {
114 tail->next = new ByteQueueNode(*current);
115 tail = tail->next;
116 }
117
118 tail->next = NULL;
119}
120
121ByteQueue::~ByteQueue()
122{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected