예제 #1
0
파일: Version.cs 프로젝트: zrisher/SEGarden
        public AppVersion(ByteStream stream)
        {
            if (stream == null) throw new ArgumentException("null stream");

            Major = stream.getUShort();
            Minor = stream.getUShort();
            Patch = stream.getUShort();
            GitSHA = stream.getString();
        }
        public ItemCountAggregateDefinition(ByteStream stream)
        {
            if (stream == null) throw new ArgumentException("null stream");

            ushort len = stream.getUShort();
            for (ushort i = 0; i < len; ++i) {
                Counts.Add(new ItemCountDefinition(stream));
            }
        }