public class TCOffsets extends Object
Constructor and Description |
---|
TCOffsets() |
Modifier and Type | Method and Description |
---|---|
int |
alignStrLen(String string)
Return the full length of the string type: 4 byte length, x bytes for
string + 1 for the null terminator, align it so it ends on a 4-byte
boundary.
|
void |
bumpCurrentOffset(int value) |
int |
currentOffset() |
int |
offset(String name)
Return -1 if the given name is not in the list of types.
|
void |
set(SymtabEntry entry) |
void |
setMember(SymtabEntry entry) |
public int offset(String name)
public void set(SymtabEntry entry)
public int alignStrLen(String string)
public void setMember(SymtabEntry entry)
public int currentOffset()
public void bumpCurrentOffset(int value)
Copyright © 2021 JBoss by Red Hat. All rights reserved.