revert input buffer off bytes