Example #1
0
    public void SetValue(uint v)
    {
        this.m_xor_key = TssSdtDataTypeFactory.GetUintXORKey();
        int index = this.m_index + 1;

        if (index == this.m_value.Length)
        {
            index = 0;
        }
        this.m_value[index] = v ^ this.m_xor_key;
        this.m_index        = index;
    }
Example #2
0
    public void SetValue(double v)
    {
        this.m_xor_key = TssSdtDataTypeFactory.GetByteXORKey();
        int num = this.m_index + 1;

        if (num == this.m_value.Length)
        {
            num = 0;
        }
        this.m_value[num] = TssSdtDataTypeFactory.GetDoubleEncValue(v, this.m_xor_key);
        this.m_index      = num;
    }
Example #3
0
    public void SetValue(double v)
    {
        this.m_xor_key = TssSdtDataTypeFactory.GetByteXORKey();
        int index = this.m_index + 1;

        if (index == this.m_value.Length)
        {
            index = 0;
        }
        this.m_value[index] = TssSdtDataTypeFactory.GetDoubleEncValue(v, this.m_xor_key);
        this.m_index        = index;
    }
    public void SetValue(ulong v)
    {
        this.m_xor_key = TssSdtDataTypeFactory.GetUlongXORKey();
        int num = this.m_index + 1;

        if (num == this.m_value.Length)
        {
            num = 0;
        }
        this.m_value[num] = (v ^ this.m_xor_key);
        this.m_index      = num;
    }
Example #5
0
    public void SetValue(byte v)
    {
        this.m_xor_key = TssSdtDataTypeFactory.GetByteXORKey();
        int index = this.m_index + 1;

        if (index == this.m_value.Length)
        {
            index = 0;
        }
        byte num2 = v;

        this.m_value[index] = (byte)(num2 ^ this.m_xor_key);
        this.m_index        = index;
    }
    public void SetValue(short v)
    {
        this.m_xor_key = TssSdtDataTypeFactory.GetShortXORKey();
        int num = this.m_index + 1;

        if (num == this.m_value.Length)
        {
            num = 0;
        }
        short num2 = v ^ this.m_xor_key;

        this.m_value[num] = num2;
        this.m_index      = num;
    }
Example #7
0
    public void SetValue(byte v)
    {
        this.m_xor_key = TssSdtDataTypeFactory.GetByteXORKey();
        int num = this.m_index + 1;

        if (num == this.m_value.Length)
        {
            num = 0;
        }
        byte b = v ^ this.m_xor_key;

        this.m_value[num] = b;
        this.m_index      = num;
    }
Example #8
0
    public void SetValue(short v)
    {
        this.m_xor_key = TssSdtDataTypeFactory.GetShortXORKey();
        int index = this.m_index + 1;

        if (index == this.m_value.Length)
        {
            index = 0;
        }
        short num2 = v;

        this.m_value[index] = (short)(num2 ^ this.m_xor_key);
        this.m_index        = index;
    }
Example #9
0
    private void SetValue(byte v)
    {
        byte byteXORKey = TssSdtDataTypeFactory.GetByteXORKey();
        int  num        = this.m_index + 1;

        if (num >= 3)
        {
            num = 0;
        }
        byte b = v ^ byteXORKey;

        this.m_value[num]   = b;
        this.m_xor_key[num] = byteXORKey;
        this.m_index        = num;
    }
Example #10
0
    private void SetValue(ushort v)
    {
        ushort ushortXORKey = TssSdtDataTypeFactory.GetUshortXORKey();
        int    num          = this.m_index + 1;

        if (num >= 3)
        {
            num = 0;
        }
        ushort num2 = v ^ ushortXORKey;

        this.m_value[num]   = num2;
        this.m_xor_key[num] = ushortXORKey;
        this.m_index        = num;
    }
Example #11
0
    private void SetValue(int v)
    {
        int intXORKey = TssSdtDataTypeFactory.GetIntXORKey();
        int num       = this.m_index + 1;

        if (num >= 3)
        {
            num = 0;
        }
        int num2 = v ^ intXORKey;

        this.m_value[num]   = num2;
        this.m_xor_key[num] = intXORKey;
        this.m_index        = num;
    }
Example #12
0
    private void SetValue(long v)
    {
        long longXORKey = TssSdtDataTypeFactory.GetLongXORKey();
        int  num        = this.m_index + 1;

        if (num >= 3)
        {
            num = 0;
        }
        long num2 = v ^ longXORKey;

        this.m_value[num]   = num2;
        this.m_xor_key[num] = longXORKey;
        this.m_index        = num;
    }
Example #13
0
    private void SetValue(float v)
    {
        int num = this.m_index + 1;

        if (num >= 3)
        {
            num = 0;
        }
        float num2 = TssSdtDataTypeFactory.GetFloatXORKey();

        if (v > 3.40282347E+38f)
        {
            num2 = 0f;
        }
        this.m_xor_key[num] = num2;
        this.m_value[num]   = v + this.m_xor_key[num];
        this.m_index        = num;
    }
Example #14
0
    private void SetValue(double v)
    {
        int num = this.m_index + 1;

        if (num >= 3)
        {
            num = 0;
        }
        double num2 = TssSdtDataTypeFactory.GetDoubleXORKey();

        if (v > 1.7976931348623157E+308)
        {
            num2 = 0.0;
        }
        this.m_xor_key[num] = num2;
        this.m_value[num]   = v + this.m_xor_key[num];
        this.m_index        = num;
    }
 public TssSdtUlongSlot()
 {
     this.m_value = new ulong[TssSdtDataTypeFactory.GetValueArraySize()];
     this.m_index = TssSdtDataTypeFactory.GetRandomValueIndex() % this.m_value.Length;
 }
Example #16
0
 public TssSdtUintSlot()
 {
     this.m_index = TssSdtDataTypeFactory.GetRandomValueIndex() % this.m_value.Length;
 }
Example #17
0
    public double GetValue()
    {
        ulong v = this.m_value[this.m_index];

        return(TssSdtDataTypeFactory.GetDoubleDecValue(v, this.m_xor_key));
    }
Example #18
0
    public float GetValue()
    {
        uint v = this.m_value[this.m_index];

        return(TssSdtDataTypeFactory.GetFloatDecValue(v, this.m_xor_key));
    }