Beispiel #1
0
        internal void WriteTo(Writer writer)
        {
            var flags = Flags.None
                        | (this.Maximum.HasValue ? Flags.Maximum : 0)
            ;

            writer.WriteVar((uint)flags);
            writer.WriteVar(this.Minimum);
            if ((flags & Flags.Maximum) != 0)
            {
                writer.WriteVar(this.Maximum.GetValueOrDefault());
            }
        }
Beispiel #2
0
 internal void WriteTo(Writer writer)
 {
     writer.WriteVar(this.Count);
     writer.WriteVar((sbyte)this.Type);
 }