Skip to main content

IOExtensions.VersionCheck

Declaration#

public static Int32 VersionCheck(Stream fs, Int32 maxVersion)

Parameters#

NameDescription
fsStream to use
maxVersionMaximum allowed versione

Description#

Read a integer from stream and compare to maximum allowed version

Usage#

Example
using NullSave.GDTK;using System.IO;using UnityEngine;
public class Example : MonoBehaviour{    public void ExampleMethod(Stream dataStream)    {        int version = dataStream.VersionCheck(2);    }}