public int getPosition() {
   return allocator.getAllocationSize();
 }
 public void allocateData(int size) {
   allocator.allocate(size);
 }