Either write to an array byte-by-byte or in batches of multiple bytes
Currently I’m writing byte-by-byte to a slice by a loop. The slice contains image pixels:
Currently I’m writing byte-by-byte to a slice by a loop. The slice contains image pixels: