Return bytes added to buffer.