Class MemoryAddressHash


  • public class MemoryAddressHash
    extends Object
    Since:
    9.0
    Author:
    wburns
    • Method Detail

      • putMemoryAddressOffset

        public void putMemoryAddressOffset​(int offset,
                                           long address)
      • getMemoryAddressOffset

        public long getMemoryAddressOffset​(int offset)
      • getMemoryAddressOffsetNoTraceIfAbsent

        public long getMemoryAddressOffsetNoTraceIfAbsent​(int offset)
      • deallocate

        public void deallocate()
      • toStream

        public LongStream toStream()
        Returns a stream of longs that are all of the various memory locations
        Returns:
        stream of the various memory locations
      • removeAll

        public LongStream removeAll()
        Removes all the address lookups by setting them to 0. This method returns a LongStream that contains all of valid (non zero) addresses that were present during this operation.
        Returns:
        stream with the valid memory pointers to stored values
      • removeAll

        public LongStream removeAll​(int offset,
                                    int count)
        Removes all the address lookups by setting them to 0 within the given offset, limiting the removal to only a specific count of addresses. This method returns a LongStream that contains all of valid (non zero) addresses that were present during this operation.
        Parameters:
        offset - offset into the block
        count - how many pointers to look at
        Returns:
        stream with the valid memory pointers to stored values
      • getPointerCount

        public int getPointerCount()