MCPcopy Create free account
hub / github.com/GregoryFaust/samblaster / getSplitLine

Function getSplitLine

samblaster.cpp:212–231  ·  view source on GitHub ↗

Like constuctor, except take struct off free list if there is one.

Source from the content-addressed store, hash-verified

210
211// Like constuctor, except take struct off free list if there is one.
212splitLine_t * getSplitLine()
213{
214 splitLine_t * line;
215 if (splitLineFreeList == NULL)
216 {
217 line = makeSplitLine();
218 }
219 else
220 {
221 line = splitLineFreeList;
222 splitLineFreeList = splitLineFreeList->next;
223 }
224 line->next = NULL;
225 line->CIGARprocessed = false;
226 // Mark these here so that the code for these doesn't have to stand on its head to do it.
227 line->discordant = false;
228 line->splitter = false;
229 line->unmappedClipped = false;
230 return line;
231}
232
233// Split the line into fields.
234void splitSplitLine(splitLine_t * line, int maxSplits)

Callers 1

readLineFunction · 0.85

Calls 1

makeSplitLineFunction · 0.85

Tested by

no test coverage detected