Bugfix : offset can go <= size, add getSize() function.