`buf` is often used for slice. Could you rename the field `bufPtr`?