void GMPEncryptedBufferDataImpl::RelinquishData(GMPDecryptionData& aData) { aData.mKeyId() = Move(mKeyId); aData.mIV() = Move(mIV); aData.mClearBytes() = Move(mClearBytes); aData.mCipherBytes() = Move(mCipherBytes); mSessionIdList.RelinquishData(aData.mSessionIds()); }
GMPEncryptedBufferDataImpl::GMPEncryptedBufferDataImpl(const GMPDecryptionData& aData) : mKeyId(aData.mKeyId()) , mIV(aData.mIV()) , mClearBytes(aData.mClearBytes()) , mCipherBytes(aData.mCipherBytes()) , mSessionIdList(aData.mSessionIds()) { MOZ_ASSERT(mClearBytes.Length() == mCipherBytes.Length()); }