this function does the same than dump but works for both little and big endian when buf is an u16 array
source not stored for this graph (policy: none)
no test coverage detected