public void UpdateValue <T>(DynamicObjectFields pos, T value, int increment = 0) { m_touched[OBJECT_TYPES.TYPE_DYNAMICOBJECT] = true; m_dynamicobjectfields.Set((int)pos + increment, true); if (value is long || value is ulong) //64bit needs to store + append two 32 bits - obviously { m_dynamicobjectfields.Set((int)pos + 1 + increment, true); m_dynamicobjectvalues[(int)pos + increment] = Convert.ToInt32(Convert.ToInt64(value) & uint.MaxValue); m_dynamicobjectvalues[(int)pos + 1 + increment] = Convert.ToInt32((Convert.ToInt64(value) >> 32) & uint.MaxValue); } else { m_dynamicobjectvalues[(int)pos + increment] = value; } }
public ExtendedUpdateFieldId(DynamicObjectFields val) { RawId = (int)val; ObjectType = ObjectTypeId.DynamicObject; }
public uint GetUInt32(DynamicObjectFields field) { return m_updateValues[(int)field].UInt32; }
public ExtendedUpdateFieldId(DynamicObjectFields val) { RawId = (int)val; ObjectType = ObjectTypeId.DynamicObject; }
public uint GetUInt32(DynamicObjectFields field) { return(this.m_updateValues[(int)field].UInt32); }
/// <summary> /// /// </summary> /// <param name="val"></param> public UpdateFieldId(DynamicObjectFields value) { m_RawId = (int)value; }
/// <summary> /// /// </summary> /// <param name="val"></param> public UpdateFieldId( DynamicObjectFields value ) { m_RawId = (int)value; }
public int GetInt32(DynamicObjectFields field) { return(m_updateValues[(int)field].Int32); }