Converted as much ugly code as I could find into appropriate C#-friendly versions. For example, all the manual ByteHelper stuff, buffer index tracking, etc. are now BinaryWriters/BinaryReaders. Also cleaned up a bunch of getter and setter methods to use C# properties. There's still more to be done here, but this greatly simplifies the code for reading and comprehension.
22 lines
336 B
C#
22 lines
336 B
C#
namespace ScreenLogicConnect
|
|
{
|
|
public class FindUnitBroadcast
|
|
{
|
|
public static readonly byte[] data = new byte[]
|
|
{
|
|
1,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
};
|
|
|
|
public FindUnitBroadcast()
|
|
{
|
|
}
|
|
}
|
|
}
|