reworked capacity so it returns now the number of bytes used by the _memory pointer