Class MemoryAddressSetCharSequence

  • All Implemented Interfaces:

    public class MemoryAddressSetCharSequence
    extends java.lang.Object
    implements java.lang.CharSequence
    This class implements the CharSequence interface using Memory and an AddressSet. The idea is that each byte in memory at the addresses specified in the AddressSet will form a contiguous sequence of characters.
    • Method Detail

      • getAddressAtIndex

        public Address getAddressAtIndex​(int index)
        Takes an index and returns the matching Address
        index - index to search on
        Address address matched to index
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence