| 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 | |
| 68 | unsigned Compressor::nonCompressableRun(unsigned length) |
no outgoing calls
no test coverage detected