code: public void addInt(int value) {
          data[endOffset] = value;
          endOffset++;
          
          // Grow the buffer if needed
          if (endOffset == data.length)
              resize();
          
      }
docs: Adds a new value.
  
  @param value new value