Lines Matching refs:pStreamOps

1936  * @param   pStreamOps      The stream method table.
1943 static int ssmR3StrmInit(PSSMSTRM pStrm, PCSSMSTRMOPS pStreamOps, void *pvUser, bool fWrite, bool fChecksummed, uint32_t cBuffers)
1948 pStrm->pOps = pStreamOps;
5096 * @param pszFilename The name of the file. NULL if pStreamOps is
5098 * @param pStreamOps The stream methods. NULL if pszFilename is
5108 static int ssmR3SaveDoCreateFile(PVM pVM, const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOpsUser,
5140 if (pStreamOps)
5141 rc = ssmR3StrmInit(&pSSM->Strm, pStreamOps, pvStreamOpsUser, true /*fWrite*/, true /*fChecksummed*/, 8 /*cBuffers*/);
5162 * @param pszFilename Name of the file to save the state in. NULL if pStreamOps is used.
5163 * @param pStreamOps The stream method table. NULL if pszFilename is
5172 VMMR3DECL(int) SSMR3Save(PVM pVM, const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOpsUser,
5186 AssertReturn(!pszFilename != !pStreamOps, VERR_INVALID_PARAMETER);
5187 if (pStreamOps)
5189 AssertReturn(pStreamOps->u32Version == SSMSTRMOPS_VERSION, VERR_INVALID_MAGIC);
5190 AssertReturn(pStreamOps->u32EndVersion == SSMSTRMOPS_VERSION, VERR_INVALID_MAGIC);
5191 AssertReturn(pStreamOps->pfnWrite, VERR_INVALID_PARAMETER);
5192 AssertReturn(pStreamOps->pfnRead, VERR_INVALID_PARAMETER);
5193 AssertReturn(pStreamOps->pfnSeek, VERR_INVALID_PARAMETER);
5194 AssertReturn(pStreamOps->pfnTell, VERR_INVALID_PARAMETER);
5195 AssertReturn(pStreamOps->pfnSize, VERR_INVALID_PARAMETER);
5196 AssertReturn(pStreamOps->pfnClose, VERR_INVALID_PARAMETER);
5206 int rc = ssmR3SaveDoCreateFile(pVM, pszFilename, pStreamOps, pvStreamOpsUser,
5680 * Must be NULL if pStreamOps is used.
5681 * @param pStreamOps The stream method table. NULL if pszFilename is
5691 const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOpsUser,
5695 LogFlow(("SSMR3LiveSave: cMsMaxDowntime=%u pszFilename=%p:{%s} pStreamOps=%p pvStreamOpsUser=%p enmAfter=%d pfnProgress=%p pvProgressUser=%p\n",
5696 cMsMaxDowntime, pszFilename, pszFilename, pStreamOps, pvStreamOpsUser, enmAfter, pfnProgress, pvProgressUser));
5707 AssertReturn(!pszFilename != !pStreamOps, VERR_INVALID_PARAMETER);
5708 if (pStreamOps)
5710 AssertReturn(pStreamOps->u32Version == SSMSTRMOPS_VERSION, VERR_INVALID_MAGIC);
5711 AssertReturn(pStreamOps->u32EndVersion == SSMSTRMOPS_VERSION, VERR_INVALID_MAGIC);
5712 AssertReturn(pStreamOps->pfnWrite, VERR_INVALID_PARAMETER);
5713 AssertReturn(pStreamOps->pfnRead, VERR_INVALID_PARAMETER);
5714 AssertReturn(pStreamOps->pfnSeek, VERR_INVALID_PARAMETER);
5715 AssertReturn(pStreamOps->pfnTell, VERR_INVALID_PARAMETER);
5716 AssertReturn(pStreamOps->pfnSize, VERR_INVALID_PARAMETER);
5717 AssertReturn(pStreamOps->pfnClose, VERR_INVALID_PARAMETER);
5727 int rc = ssmR3SaveDoCreateFile(pVM, pszFilename, pStreamOps, pvStreamOpsUser,
7950 * @param pszFilename The filename. NULL if pStreamOps is used.
7951 * @param pStreamOps The stream method table. NULL if pszFilename is
7962 static int ssmR3OpenFile(PVM pVM, const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvUser,
8021 if (pStreamOps)
8022 rc = ssmR3StrmInit(&pSSM->Strm, pStreamOps, pvUser, false /*fWrite*/, fChecksumOnRead, cBuffers);
8539 * @param pszFilename The name of the saved state file. NULL if pStreamOps
8541 * @param pStreamOps The stream method table. NULL if pszFilename is
8551 VMMR3DECL(int) SSMR3Load(PVM pVM, const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOpsUser,
8554 LogFlow(("SSMR3Load: pszFilename=%p:{%s} pStreamOps=%p pvStreamOpsUser=%p enmAfter=%d pfnProgress=%p pvProgressUser=%p\n",
8555 pszFilename, pszFilename, pStreamOps, pvStreamOpsUser, enmAfter, pfnProgress, pvProgressUser));
8566 AssertReturn(!pszFilename != !pStreamOps, VERR_INVALID_PARAMETER);
8567 if (pStreamOps)
8569 AssertReturn(pStreamOps->u32Version == SSMSTRMOPS_VERSION, VERR_INVALID_MAGIC);
8570 AssertReturn(pStreamOps->u32EndVersion == SSMSTRMOPS_VERSION, VERR_INVALID_MAGIC);
8571 AssertReturn(pStreamOps->pfnWrite, VERR_INVALID_PARAMETER);
8572 AssertReturn(pStreamOps->pfnRead, VERR_INVALID_PARAMETER);
8573 AssertReturn(pStreamOps->pfnSeek, VERR_INVALID_PARAMETER);
8574 AssertReturn(pStreamOps->pfnTell, VERR_INVALID_PARAMETER);
8575 AssertReturn(pStreamOps->pfnSize, VERR_INVALID_PARAMETER);
8576 AssertReturn(pStreamOps->pfnClose, VERR_INVALID_PARAMETER);
8583 int rc = ssmR3OpenFile(pVM, pszFilename, pStreamOps, pvStreamOpsUser, false /* fChecksumIt */,
8889 int rc = ssmR3OpenFile(NULL, pszFilename, NULL /*pStreamOps*/, NULL /*pvUser*/, fChecksumIt,
8930 int rc = ssmR3OpenFile(NULL, pszFilename, NULL /*pStreamOps*/, NULL /*pvUser*/, false /*fChecksumIt*/,