KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have this function in C# to convert a little endian byte array to an integer number: int LE2INT(byte[] data) { return (data[3] << 24) | (data[2] << 16) | (data[1] << 8) | data[0]; } Now I want to convert it back to little endian.. Something like byte[] INT2LE(int data) { // ... } Any idea? Thanks.
Tags (comma-separated)
Save Edits
Cancel