Class CliStreamBlob

    • Field Detail

      • blobMap

        protected java.util.Map<java.lang.Integer,​CliBlob> blobMap
    • Constructor Detail

      • CliStreamBlob

        public CliStreamBlob​(CliStreamHeader header,
                             long offset,
                             int rva,
                             BinaryReader reader)
        Creates a new Blob stream.
        header - The stream header associated with this stream.
        offset - The reader offset where this stream starts.
        rva - The relative virtual address where this stream starts.
        reader - A reader that is used to read the stream.
        Throws: - if there is a problem reading the stream.
    • Method Detail

      • getName

        public static java.lang.String getName()
        Gets the name of this stream.
        The name of this stream.
      • parse

        public boolean parse()
        Description copied from class: CliAbstractStream
        Parses this stream.
        Specified by:
        parse in class CliAbstractStream
        True if parsing completed successfully; otherwise, false.
        Throws: - If there was an IO problem while parsing.
      • getBlob

        public CliBlob getBlob​(int index)
        Gets the blob at the given index.
        index - The index of the blob to get.
        The blob at the given index. Could be null if the index was invalid or there was a problem reading the blob.
      • updateBlob

        public boolean updateBlob​(CliBlob updatedBlob,
                                  Address addr,
                                  Program program)
        Updates the blob at the given address with the new blob.
        updatedBlob - The updated blob.
        address - The address of the blob to update.
        program - The program that will get the update.
      • toDataType

        public DataType toDataType()
                            throws DuplicateNameException,
        Description copied from interface: StructConverter
        Returns a structure datatype representing the contents of the implementor of this interface.

        For example, given:

         class A {
             int foo;
             double bar;

        The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

        returns a structure datatype representing the implementor of this interface
        DuplicateNameException - when a datatype of the same name already exists
        See Also: