add method to read/write off-heap memory to a byte array
add simple readme