Package ghidra.program.util.string
Class PascalUtil
- java.lang.Object
-
- ghidra.program.util.string.PascalUtil
-
public class PascalUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PascalUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sequence
findPascalSequence(MemBuffer buf, Sequence sequence, int alignment)
Looks for Pascal strings given a sequence of bytes that represent a sequence of ascii chars.
-
-
-
Method Detail
-
findPascalSequence
public static Sequence findPascalSequence(MemBuffer buf, Sequence sequence, int alignment)
Looks for Pascal strings given a sequence of bytes that represent a sequence of ascii chars.- Parameters:
buf
- the Memory buffer containing the bytes that make up the string.sequence
- the sequence that specifies the start, end, and type of ascii sequence (i.e. ascii, unicode16). This method looks for both 2 byte and 1 byte leading pascal lengths both before and at the beginning of the given sequence.- Returns:
- a new sequence that has been adjusted to represent a pascal string or null if a pascal string was not found.
-
-