- write parameter index to the buffer.