(Almost) a copy-paste from contrib.undead.stream.d
Switches the byte order of buffer. size must be even.
See Source File
(Almost) a copy-paste from contrib.undead.stream.d