-1 if the entire buffer has become invalid due to the shift, 1 if the buffer has become partially invalid or 0 if no shift has been performed (i.e. both x in and y in are 0).
Performs the proper callbacks to the given callback opt for the specified buffer shift.