11-12-2013 10:08 AM
bonjour, je ne comprend la conversion avec la fonction adapter le type qui ne respecte pas le LSB fisrt.
Merci d'avance
De plus pour passer de LSB en MSB y a t il un autre moyen que la conversion en tableau de booléen et l'inversion de celui-ci ?
Ludo
11-12-2013 11:22 AM - edited 11-12-2013 11:22 AM
Reversing the array in the case of little endian is fine, other solution are not really simpler. Here is an alternative.
11-13-2013 01:08 AM
Ok but for the first idea, it doesn't work with only one byte (if i want to change LSB MSB, i must convert on bit array before).
About ressouce processor what is the best soluce ?
Ludo
11-13-2013 01:15 AM
@LUDO_27 wrote:
Ok but for the first idea, it doesn't work with only one byte (if i want to change LSB MSB, i must convert on bit array before).
If you only have one byte, byte order is irrelevant. Nothing to do with bits. If you have LSB and MSB, you have at least two bytes.
Please explain.
11-13-2013 02:43 AM
I trie this morning your example but with 3 bytes (ex an array with 3 data AB CD EF) there is an error. Why ?
Ludo
11-13-2013 03:05 AM
If you want to end up with a 4 byte value (e.g. U32), you need a four byte input. If you have less, you need to pad the input to the correct size.