Ejemplo n.º 1
0
 /// <summary>
 /// Loads a CommitPoint structure from a stream
 /// </summary>
 /// <param name="stream">The stream to read from</param>
 /// <returns>A new CommitPoint structure constructed from the data in the stream</returns>
 /// <exception cref="BrightstarInternalException">Raised if the data could not be validated as a CommitPoint structure</exception>
 public static CommitPoint Load(Stream stream)
 {
     var ret = new CommitPoint();
     ret.Read(stream);
     ret.NextCommitNumber = ret.CommitNumber + 1;
     return ret;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads a CommitPoint structure from a stream
        /// </summary>
        /// <param name="stream">The stream to read from</param>
        /// <returns>A new CommitPoint structure constructed from the data in the stream</returns>
        /// <exception cref="BrightstarInternalException">Raised if the data could not be validated as a CommitPoint structure</exception>
        public static CommitPoint Load(Stream stream)
        {
            var ret = new CommitPoint();

            ret.Read(stream);
            ret.NextCommitNumber = ret.CommitNumber + 1;
            return(ret);
        }