Tinkerforge/generators — pull request #34 by NobodysNightmare (2013-01-30 20:36:17+00:00)
Title: C#: shorten internal representation of UIDs to 32 Bit

While working on another project inside your code (where I don't know if I will ever make a Pull Request) I realized that your internal representation of UIDs is still 64 Bit while the new protocol only knows about 32 Bit.

This Pull Request shortens the internal representation down to 32 Bit. I made a quick test with small and UIDs and it still seems to work, however... you might want to make sure I didn't break anything.

Trivia
-------
In MakePacketHeader, if you would swap the assignment-order of uid and length (i.e. set length first), the UID would currently overwrite the length field (this is how I noticed that UIDs are too long internally ^^)