Class is used to extract the accessor from a buffer. Depending on the type of the leaf node we can get a read accessor or a read_write accessor