Search Unity

Feedback Feature Request: StreamBinaryWriter/Reader that do support streams

Discussion in 'Entity Component System' started by MNNoxMortem, Aug 4, 2020.

  1. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    The current API does only support filenames and will open/close new file handles. When working with combined single files, streams, memory mapped files, this is incompatible.

    I'd wish we get an API that does actually support streams, including a "leaveOpen" flag for Streams that we do not want to close (e.g. single database files).

    This drags down through the whole API (incl. AsyncReadManager.Read etc)
     
    Last edited: Aug 4, 2020
  2. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    BinaryWriter/Reader are interfaces. Unity's default implementations are fairly simple geared towards what sub scenes need mostly.