KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have to pack some enumerations to byte array ( char* ) and send over network. Is it possible to set the default type for enum to be unsigned char ? (I can now cast or use & 0xff to extract first byte/char, but that requires additional operations so is there any way to solve this at definition of enum ?)
Tags (comma-separated)
Save Edits
Cancel