Inheritance: SerializableBase
コード例 #1
0
        /// <summary>
        /// Deserialize from a stream.
        /// </summary>
        /// <param name="stream">A stream contains serialize.</param>
        /// <param name="size">Must be -1.</param>
        /// <returns>The number of bytes read from the stream.</returns>
        public override int Deserialize(Stream stream, int size)
        {
            AdapterHelper.Site.Assert.AreEqual(-1, size, "The size value MUST be -1, the actual value is {0}.", size);

            this.globset = new GLOBSET();
            this.repLID = StreamHelper.ReadUInt16(stream);
            return this.globset.Deserialize(stream, -1) + 2;
        }
コード例 #2
0
        /// <summary>
        /// Deserialize from a stream.
        /// </summary>
        /// <param name="stream">A stream contains serialize.</param>
        /// <param name="size">Must be -1.</param>
        /// <returns>The number of bytes read from the stream.</returns>
        public override int Deserialize(Stream stream, int size)
        {
            AdapterHelper.Site.Assert.AreEqual(-1, size, "The size value MUST be -1, the actual value is {0}.", size);

            this.globset = new GLOBSET();
            this.repLID  = StreamHelper.ReadUInt16(stream);
            return(this.globset.Deserialize(stream, -1) + 2);
        }