Topic: RtlCompressBuffer and LZNT1 - How to pick up the size . Buffers
I write function - a wrapper for RtlCompressBuffer which allows to simplify as much as possible the code and to accelerate a spelling. Here in RtlCompressBuffer very much it is not pleasant that you select the size of the output buffer itself from any , type "with a store". Simply to make its equal to the input buffer - not a variant - the day off it can appear more input in an unsuccessful case (if input all some byte or at all 0 byte). Or cannot? How to be? If it is stupid to increase the size input several times (hammering on saving of resources), in how many? To make how it becomes normally (beforehand to cause function with the zero buffer, to return result) it is impossible, apparently.