creates a readable stream from a buffer