docs: public void write(final int b)
      {
          if (position == length)
          {
              throw new IllegalStateException("position has reached the end of underlying buffer");
          }
  
          buffer.putByte(offset + position, (byte)b);
          ++position;
      }