Class PascalUtil

java.lang.Object
ghidra.program.util.string.PascalUtil

public class PascalUtil extends Object
  • Constructor Details

    • PascalUtil

      public PascalUtil()
  • Method Details

    • 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.