New class for reading raw data from memory