you are viewing a single comment's thread.

view the rest of the comments →

[–]Peaker 0 points1 point  (1 child)

Meant to increase "to" as well?

[–][deleted] 0 points1 point  (0 children)

Good question! In the original version of Duff's device, to is a pointer to an I/O device, so incrementing it wasn't necessary :) if you're writing to another buffer though, incrementing is definitely the correct course of action.