Use a span instead of pointer+count