Make parsing simpler and faster by using a memory buffer directly