readAllBytes

Read all bytes into a new array. Only practical for small buffers.