       C , diamond', 
LZMA-.  LZMA SDK 4.32  copyright (c) 1999-2005
Igor Pavlov,      http://www.7-zip.org/sdk.html,
,  ,     C++,C#  Java   
,  LZMA-  ANSI-C,   7z.

       ,  
bt4 match-finder,     (,  
  ),     
 . (     LZMA
SDK.)       ,   
 VC++,       ANSI C  
 VC-  #pragma intrinsic(memcpy), ,
 memcpy      -     
     C run-time library. (  , 
     MtApPack,  
RTL        Windows,   Kolibri.)

 ,    LZMA SDK,     
       (  ) GNU LGPL 
GNU CPL. ( SDK    
        
 ,      .)

  :  C++-   :
extern "C" __stdcall void lzma_set_dict_size(unsigned logdictsize);
extern "C" __stdcall unsigned lzma_compress(
	const void* source,
	void* destination,
	unsigned length,
	void* workmem);

         ,
    2  
(.. dictsize == (1<<logdictsize)).     256Mb,
   logdictsize    28.   
   ,       ,
..    12345       16384  
 1  .
      . source -  
 , destination -      ,
length -   , workmem -    ,
 ;      0x509000+dictsize*19/2
.        0x10 + length*9/8 .
