how to set a buffer's memory to 0

Replying because this still shows up in Google search results for setting a buffer to zero. On OpenCL 1.2 and later, use clEnqueueFillBuffer.