コード例 #1
0
        /// <summary>
        /// Decodes this instance.
        /// </summary>
        public override void Decode()
        {
            this.Entries = new InboxEntry[this.Stream.ReadVInt()];

            for (int i = 0; i < this.Entries.Length; i++)
            {
                InboxEntry Entry = new InboxEntry();
                Entry.Decode(this.Stream);
                this.Entries[i] = Entry;
            }
        }
コード例 #2
0
 public void Add(InboxEntry entry) {
    if (entry == null) return;
    lock (this) {
       _inbox.Add(entry);
    }
 }