static byte[] read(final IMemoryManager mmgr,final long addr){
  final int nbytes=getAllocationSize(addr);
  final byte[] a=new byte[nbytes];
  final ByteBuffer mybb=ByteBuffer.wrap(a);
  final ByteBuffer[] bufs=mmgr.get(addr);
  for (  ByteBuffer b : bufs) {
    mybb.put(b);
  }
  return a;
}

static byte [ ] read ( final IMemoryManager mmgr , final long addr ) { final int nbytes = getAllocationSize ( addr ) ; final byte [ ] a = new byte [ nbytes ] ; final ByteBuffer mybb = ByteBuffer . wrap ( a ) ; final ByteBuffer [ ] bufs = mmgr . get ( addr ) ; for ( ByteBuffer b : bufs ) { mybb . put ( b ) ; } return a ; }
utility method to read and return the application data stored at a given address .
