Change write_index_size of Packet