Delete those hidious and wrong endian.c
Properly transmit buffer type/group