const for = as a byte
bytebuffer adaptation of Robert Harders work
the ideal turned out to be way slow compared to the slightly ugly