private int remainingData(){
  return buffer.remaining();
}

private int remainingData ( ) { return buffer . remaining ( ) ; }
return the width of bytes in a buffer . e . g . given a buffer with pointers 0 < = position < = limit < = capacity , buffer : | 0 , 0 , 1 , 2 , 3 , 4 , 0 , 0 , 0 , 0 , 0 | | | | | 0 position limit capacity this method returns limit - position
