public LongStream toStream ( ) { return LongStream . iterate ( memory , l -> l + 8 ) . limit ( pointerCount ) . map ( UNSAFE :: getLong ) . filter ( l -> l != 0 ) ; }
Returns a stream of longs that are all of the various memory locations