docs: protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize)
      {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "payloadDeleted", new Object[] { this, new Integer(totalPayloadSize), new Integer(unwrittenPayloadSize) });
  
          // Track the payload decreases directly. We take no account for this classes header values
          // in these figures.
          _totalDataSize -= totalPayloadSize;
          _unwrittenDataSize -= unwrittenPayloadSize;
  
          // When removing existing payload, if the resulting unwritten data size has gone back down to 
          // zero then there will be no further need to account for the unwritten data header.
          // When we pass on this payload adjustment we must account for the header size.
          if (_unwrittenDataSize == 0 && (unwrittenPayloadSize != 0))
          {
              unwrittenPayloadSize += _totalHeaderSize;
          }
  
          // When removing existing payload, if the resulting written data size has gone back down to 
          // zero then there will be no further need to account for the written data header.
          // When we pass on this payload adjustment we must account for the header size.
          if (_totalDataSize == 0)
          {
              totalPayloadSize += _totalHeaderSize;
          }
  
          // Pass on the payload adjustment to the parent class.
          _recLog.payloadDeleted(totalPayloadSize, unwrittenPayloadSize);
  
          if (tc.isDebugEnabled())
              Tr.debug(tc, "unwrittenDataSize = " + _unwrittenDataSize + " totalDataSize = " + _totalDataSize);
          if (tc.isEntryEnabled())
              Tr.exit(tc, "payloadDeleted");
      }