LDM_RELATIVE
Section: ()
Updated: 06 October 2005
Index
Return to Main Contents
NAME
ldm_relative - Calculate the next relative offset
SYNOPSIS
"SYNOPSIS"
int ldm_relative (const u8 * buffer, int buflen, int base, int offset);
ARGUMENTS
- buffer
-
Block of data being worked on
- buflen
-
Size of the block of data
- base
-
Size of the previous fixed width fields
- offset
-
Cumulative size of the previous variable-width fields
DESCRIPTION
Because many of the VBLK fields are variable-width, it's necessary
to calculate each offset based on the previous one and the length
of the field it pointed to.
RETURN
-1 Error, the calculated offset exceeded the size of the buffer
n OK, a range-checked offset into buffer
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
- RETURN
-
This document was created by
man2html,
using the manual pages.
Time: 04:40:53 GMT, October 06, 2005