protected static int ParseListInt2(GameDataParser parser, byte[] bytes, int offset, GameDataBase gameDataObj, string fieldName) { BitConverterUtility.ConvertEndianFrom(bytes, true, offset, 4); var arrayCount = BitConverter.ToInt32(bytes, offset); offset += 4; List <List <int> > array = new List <List <int> >(arrayCount); for (int i = 0; i < arrayCount; i++) { BitConverterUtility.ConvertEndianFrom(bytes, true, offset, 4); var count = BitConverter.ToInt32(bytes, offset); offset += 4; List <int> values = new List <int>(count); for (int j = 0; j < count; j++) { BitConverterUtility.ConvertEndianFrom(bytes, true, offset, 4); var value = BitConverter.ToInt32(bytes, offset); offset += 4; values.Add(value); } array.Add(values); } gameDataObj.SetListInt2(fieldName, array); return(offset); }