Skip to content

StringEncodedWriteVector Methods

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

FlipBit(string, string)

static
View source
public static bool FlipBit(ref string writeVector, string Replica)
toggle one of the bits in writeVector and return the new value.

Parameters

writeVectorstring
The write vector in which we want to flip the bit
Replicastring
The replica for which we want to flip the bit

Returns

the state of the bit after flipping it

GetBit(string, string)

static
View source
public static bool GetBit(string writeVector, string Replica)
Gets one of the bits in writeVector

Parameters

writeVectorstring
The write vector which we want get the bit from
Replicastring
The replica for which we want to look up the bit