added method to (re)set the base indices;
added method to get const memory pointer