Skip to main content

IOExtensions.WriteBool

Declaration#

public static void WriteBool(Stream fs, bool value)

Parameters#

NameDescription
fsStream to use
valueValue to write

Description#

Write a bool to a stream

Usage#

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