add custom delegate methods to indicate how many bytes has been written