Set the index of the SmartBuffer as the arguement of PullCallback to 0.

This patch allows the called back code to omit the call of resetIndex().