Skip to main content

IOExtensions.ReadLongNullable

Declaration#

public static Nullable<Int64> ReadLongNullable(Stream fs)

Parameters#

NameDescription
fsStream to use

Description#

Read a nullable long from a stream

Usage#

Example
using NullSave.GDTK;using System.IO;using UnityEngine;
public class ExampleObject : MonoBehaviour{
    private void Start()    {            MemoryStream ms = new MemoryStream();            ms.WriteLongNullable(1000);
            ms.Seek(0, SeekOrigin.Begin);            Debug.Log("Result: " + ms.ReadLongNullable());    }
}