Create 4 functions for Double, Single, Byte like below for Integer:
public IntegerPointer allocateInteger(){
int p = this.position();
IoBuffer buffer = allocate(2);
return new IntegerPointer(this, p, buffer);
} The word "integerpointer" should not appear in your response.
user