Allow the use of direct buffers, instead of relying on reading a file from disk