Add ability to load data from a buffer