Class CliStreamUserStrings

  • All Implemented Interfaces:
    PeMarkupable, StructConverter

    public class CliStreamUserStrings
    extends CliStreamBlob
    The User Strings stream contains blobs of 16-bit Unicode strings. When the stream is present, the first entry is always the byte 0x00. This stream may contain garbage in its unreachable parts.
    • Constructor Detail

      • CliStreamUserStrings

        public CliStreamUserStrings​(CliStreamHeader header,
                                    long fileOffset,
                                    int rva,
                                    BinaryReader reader)
        Creates a new CliStreamUserStrings.
        header - The stream header associated with this stream.
        fileOffset - The file offset where this stream starts.
        rva - The relative virtual address where this stream starts.
        reader - A reader that is set to the start of 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.
      • getUserString

        public java.lang.String getUserString​(int index)
        Gets the user string at the given index.
        index - The index of the user string to get.
        The user string at the given index. Could be null if the index was invalid or there was a problem reading the user string.
      • 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.

        Specified by:
        toDataType in interface StructConverter
        toDataType in class CliStreamBlob
        returns a structure datatype representing the implementor of this interface
        DuplicateNameException - when a datatype of the same name already exists
        See Also: