/// <summary> /// Instantiates a new eWAH enumerator /// </summary> /// <param name="a">the array of words</param> /// <param name="sizeinwords">the number of words that are significant in the array of words</param> public EwahEnumerator(long[] a, int sizeinwords) { _Rlw = new RunningLengthWord(a, 0); _SizeInWords = sizeinwords; _Pointer = 0; }
/// <summary> /// Reset the values of this running length word so that it has the same values /// as the other running length word. /// </summary> /// <param name="rlw">the other running length word </param> public void Reset(RunningLengthWord rlw) { Reset(rlw.ArrayOfWords[rlw.Position]); }
public object Clone() { var clone = new RunningLengthWord(ArrayOfWords,Position); return clone; }
/// <summary> /// Instantiates a new buffered running length word /// </summary> /// <param name="rlw">the rlw</param> public BufferedRunningLengthWord(RunningLengthWord rlw) : this(rlw.ArrayOfWords[rlw.Position]) { }
public object Clone() { var clone = new RunningLengthWord(ArrayOfWords, Position); return(clone); }