Class MemBufferInputStream

java.lang.Object
java.io.InputStream
ghidra.program.model.mem.MemBufferInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class MemBufferInputStream extends InputStream
Adapter between membuffers and inputstreams.
  • Constructor Details

    • MemBufferInputStream

      public MemBufferInputStream(MemBuffer membuf)
      Creates a new instance, starting a offset 0 of the membuffer, limited to the first 2Gb of the membuffer.
      Parameters:
      membuf - MemBuffer to wrap as an inputstream
    • MemBufferInputStream

      public MemBufferInputStream(MemBuffer membuf, int initialPosition, int length)
      Creates a new instance of MemBufferInputStream, starting at the specified offset, limited to the first length bytes.
      Parameters:
      membuf - MemBuffer to wrap as an inputstream
      initialPosition - starting position in the membuffer
      length - number of bytes to limit this inputstream to. The sum of initialPosition and length must not exceed Integer.MAX_VALUE+1
  • Method Details