mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-11 08:07:12 -06:00
4.59 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
3901bf0ab8
commit
173c07e166
14
C/Bra.h
14
C/Bra.h
@@ -1,5 +1,5 @@
|
||||
/* Bra.h -- Branch converters for executables
|
||||
2008-03-19
|
||||
2008-08-05
|
||||
Copyright (c) 1999-2008 Igor Pavlov
|
||||
Read LzmaDec.h for license options */
|
||||
|
||||
@@ -8,18 +8,18 @@ Read LzmaDec.h for license options */
|
||||
|
||||
#include "Types.h"
|
||||
|
||||
/*
|
||||
These functions convert relative addresses to absolute addresses
|
||||
/*
|
||||
These functions convert relative addresses to absolute addresses
|
||||
in CALL instructions to increase the compression ratio.
|
||||
|
||||
In:
|
||||
In:
|
||||
data - data buffer
|
||||
size - size of data
|
||||
ip - current virtual Instruction Pinter (IP) value
|
||||
state - state variable for x86 converter
|
||||
encoding - 0 (for decoding), 1 (for encoding)
|
||||
|
||||
Out:
|
||||
Out:
|
||||
state - state variable for x86 converter
|
||||
|
||||
Returns:
|
||||
@@ -41,9 +41,9 @@ in CALL instructions to increase the compression ratio.
|
||||
Example:
|
||||
|
||||
UInt32 ip = 0;
|
||||
for()
|
||||
for()
|
||||
{
|
||||
// size must be >= Alignment + LookAhead, if it's not last block
|
||||
// size must be >= Alignment + LookAhead, if it's not last block
|
||||
SizeT processed = Convert(data, size, ip, 1);
|
||||
data += processed;
|
||||
size -= processed;
|
||||
|
||||
Reference in New Issue
Block a user