code: public ByteBuffer toByteBuffer()
    {
      ByteBuffer buffer = ByteBuffer.allocate((lastWordIndex + 1) * 4);
      buffer.asIntBuffer().put(Arrays.copyOf(words, lastWordIndex + 1));
      return buffer;
    }
docs: {@inheritDoc}