AmericasCup.Data.RaceStartStatus.Read C# (CSharp) Метод

Read() публичный статический Метод

public static Read ( byte buf, int c, RaceStartStatus rss ) : int
buf byte
c int
rss RaceStartStatus
Результат int
        public static int Read(byte[] buf, int c, RaceStartStatus rss)
        {
            rss.MessageVersionNumber = buf[c++];
            rss.Time = new DateTime(1970, 1, 1).AddMilliseconds(BitConverter.ToUInt64(
                new byte[] { buf[c++], buf[c++], buf[c++], buf[c++], buf[c++], buf[c++], 0, 0 }, 0));
            rss.AckNumber = BitConverter.ToUInt16(buf, c);
            c += 2;

            rss.Time = new DateTime(1970, 1, 1).AddMilliseconds(BitConverter.ToUInt64(
                new byte[] { buf[c++], buf[c++], buf[c++], buf[c++], buf[c++], buf[c++], 0, 0 }, 0));

            rss.RaceId = BitConverter.ToUInt32(buf, c);
            c += 4;

            rss.NotificationType = (RaceStartStatusEnum)buf[c++];

            return c;
        }

Same methods

RaceStartStatus::Read ( byte rss ) : RaceStartStatus
RaceStartStatus