> > > Byte by byte storing of the word is possible, but to me it looks more
> > complicated than needed with endianness handling.
> > 
> > There is only one correct endianness for each format.
> 
> Btw after the endianness is handled memcopy also can be used instead of
> byte-by-byte copy. What do you prefer ?

There is no need or use for memcpy.  You have to do byte-by-byte encoding
(of four bytes, twice) to directly specify the endianness anyway, and then
you've done the whole thing in place already.
_______________________________________________
elfutils-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/elfutils-devel

Reply via email to