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

Function adjustRunLength

src/jrd/sqz.cpp:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 const int MAX_LONG_RUN = MAX_SLONG; // 2^31
60
61 inline int adjustRunLength(unsigned length)
62 {
63 return (length <= MAX_SHORT_RUN) ? 0 :
64 (length <= MAX_MEDIUM_RUN) ? sizeof(USHORT) : sizeof(ULONG);
65 }
66};
67
68unsigned Compressor::nonCompressableRun(unsigned length)

Callers 3

CompressorMethod · 0.85
truncateMethod · 0.85
truncateTailMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected