Can we work with nibbles in C# struct like C++?. Is there any equivalent code in C#?
typedef struct PHeader {
#if defined(LITTLE_ENDIAN)
uint8_t mHdrLen :4;
uint8_t mVer :4;
#elif defined (BIG_ENDIAN)
uint8_t mVer :4;
uint8_t mHdrLen :4;
#endif
}
Thank You.