Hallo,
Wollte in meinen Delphi3 diese unpack lib einbauen. von Jeremey Collake JCalg. Wie wende ich die Befehle an?
JCALG1_Compress( ???
JCALG1_Decompress_Fast( ???
...
Was muß ich da den als Variablen angeben?
Danke für alle Posts...
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48:
| unit JCALG1;
{ Delphi interface for JCALG1 r5.15 by Jordan Russell }
interface
uses Windows;
type TJCALG1_AllocFunc = function(Size: Integer): Pointer; stdcall; TJCALG1_DeAllocFunc = function(Memory: Pointer): BOOL; stdcall; TJCALG1_CallbackFunc = function(CurrentSrc, CurrentDest: Integer): BOOL; stdcall; TJCALG1_Info = packed record MajorRev: Integer; MinorRev: Integer; FastDecompressorSize: Integer; SmallDecompressorSize: Integer; end;
function JCALG1_Compress(Source: Pointer; Length: Integer; Destination: Pointer; WindowSize: Integer; pAlloc: TJCALG1_AllocFunc; pDealloc: TJCALG1_DeAllocFunc; pCallback: TJCALG1_CallbackFunc, bDisableChecksum: Integer): Integer; stdcall; external;
function JCALG1_Decompress_Fast(Source, Destination: Pointer): Integer; stdcall; external;
function JCALG1_Decompress_Small(Source, Destination: Pointer): Integer; stdcall; external;
function JCALG1_GetUncompressedSizeOfCompressedBlock(Block: Pointer): Integer; stdcall; external;
function JCALG1_GetNeededBufferSize(Size: Integer): Integer; stdcall; external;
procedure JCALG1_GetInfo(var Info: TJCALG1_Info); stdcall; external;
implementation
{$L jcalg1_borland.obj}
end. |
(25.11. 09:44 Tino) Code-Tags hinzugefügt.