Thank you for replying. Just to clarify, bit 0 is the lowest bit. In addition, I only need to figure out the mathematical calculation/formula for this specific problem.
Also, can you further elaborate what you mean by "thinking in terms of bit operations"?
I am supposed to determine the bit mask and shift values based on the following 3 values: the start byte, the start bit, and the number of bits.
I will receive some byte array for my data of x many bytes. Let's say some random chunk of data within this large byte array represents whether a...
I have a class as shown below:
public class Par
{
public string id { get { return id; } set { id = value; } }
public Int32 num { get { return num; } set { num = value; } }
}
Now I also created a class named "Msg" which has a nested list of Par objects
public class Msg
{
private...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.