public void memsetBuffer(ByteBuffer buffer){
  memsetBuffer(buffer,buffer.limit());
}

public void memsetBuffer ( ByteBuffer buffer ) { memsetBuffer ( buffer , buffer . limit ( ) ) ; }
it will reset all the positions on the buffer to 0 , using memset .
