/* Iterates all variables found in the variable serialization instance */
RETURN_STATUS EFIAPI SerializeVariablesIterateInstanceVariables(IN EFI_HANDLE Handle, IN VARIABLE_SERIALIZATION_ITERATION_CALLBACK CallbackFunction, IN VOID *Context)
/* Iterates all variables found in the variable serialization instance */
RETURN_STATUS EFIAPI SerializeVariablesIterateInstanceVariables(IN EFI_HANDLE Handle, IN VARIABLE_SERIALIZATION_ITERATION_CALLBACK CallbackFunction, IN VOID *Context)
{
  SV_INSTANCE  *Instance;
  Instance = SV_FROM_HANDLE (Handle);
  if ((Instance->BufferPtr != NULL) && (Instance->DataSize != 0)) {
    return IterateVariablesInBuffer (
             CallbackFunction,
             Context,
             Instance->BufferPtr,
             Instance->DataSize
             );
  } else {
    return RETURN_SUCCESS;
  }
}