本帖最后由 ancientcc 于 2017-10-13 09:23 编辑 如何删除重复(repeated)字段中的任意对象? http://www.it1352.com/488225.html How to delete arbitrary objects in repeated field? (protobuf)https://stackoverflow.com/questi ... ated-field-protobuf SwapElements执行交换,把要删除的对象交换到最后位置,然后RemoveLast执行删除。
drag_at是要删除条目的索引。 |