Given an array of values, checks to see if it would be better to write it out as a raw array or RLE array
| 2343 | // Given an array of values, checks to see if it would be better to write it out |
| 2344 | // as a raw array or RLE array |
| 2345 | void CheckToWriteCompressByte(CFILE *fp, uint8_t *vals, int total) { |
| 2346 | int count = WriteCompressionByte(fp, vals, total, 1, COMPRESS); |
| 2347 | |
| 2348 | if (count >= total) |
| 2349 | WriteCompressionByte(fp, vals, total, 0, NO_COMPRESS); |
| 2350 | else |
| 2351 | WriteCompressionByte(fp, vals, total, 0, COMPRESS); |
| 2352 | } |
| 2353 | |
| 2354 | // Given an array of values, checks to see if it would be better to write it out |
| 2355 | // as a raw array or RLE array |
no test coverage detected