Example #1
0
        /// <summary>
        /// toggle one of the bits in <see cref="WriteVector"/> and return the new value.
        /// </summary>
        /// <param name="Replica">The replica for which we want to flip the bit</param>
        /// <returns>the state of the bit after flipping it</returns>
        public bool FlipBit(string Replica)
        {
            var str  = WriteVector;
            var rval = StringEncodedWriteVector.FlipBit(ref str, Replica);

            WriteVector = str;
            return(rval);
        }
Example #2
0
 /// <summary>
 /// Gets one of the bits in <see cref="WriteVector"/>
 /// </summary>
 /// <param name="Replica">The replica for which we want to look up the bit</param>
 /// <returns></returns>
 public bool GetBit(string Replica)
 {
     return(StringEncodedWriteVector.GetBit(WriteVector, Replica));
 }