G
Guest
Hello Everybody,
I wrote a little method that gets me an Int32 from a BitArray. This method
looks like this:
private Int32 GetIntVal( BitArray iArray )
{
Byte[] lByteArr = new Byte[ iArray.Count ];
iArray.CopyTo( lByteArr, 0 );
return BitConverter.ToInt32( lByteArr, 0 );
}
Now I need the according Set method to Set an Int32 value to a BitArray ????
private void SetIntVal( Int32 iValue, ref BitArray iArray )
{
// ??????
}
can anyone help ??
Thanks
I wrote a little method that gets me an Int32 from a BitArray. This method
looks like this:
private Int32 GetIntVal( BitArray iArray )
{
Byte[] lByteArr = new Byte[ iArray.Count ];
iArray.CopyTo( lByteArr, 0 );
return BitConverter.ToInt32( lByteArr, 0 );
}
Now I need the according Set method to Set an Int32 value to a BitArray ????
private void SetIntVal( Int32 iValue, ref BitArray iArray )
{
// ??????
}
can anyone help ??
Thanks