Beispiel #1
0
        protected static int ParseShort(GameDataParser parser, byte[] bytes, int offset, GameDataBase gameDataObj, string fieldName)
        {
            BitConverterUtility.ConvertEndianFrom(bytes, true, offset, 2);
            var value = BitConverter.ToInt16(bytes, offset);

            offset += 2;
            gameDataObj.SetShort(fieldName, value);
            return(offset);
        }