Class IOService | Project Tiny | 0.29.0-preview.22
docs.unity3d.com
    Show / Hide Table of Contents

    Class IOService

    Provides utility functions for interacting with the files

    Inheritance
    Object
    IOService
    Namespace: Unity.Tiny.IO
    Syntax
    public static class IOService

    Fields

    PathSeparator

    Declaration
    public const string PathSeparator = "/"
    Field Value
    Type Description
    String

    Methods

    RequestAsyncRead(String)

    Issues an asynchronous request to read all data from the given filepath or URI.

    Declaration
    public static AsyncOp RequestAsyncRead(string path)
    Parameters
    Type Name Description
    String path
    Returns
    Type Description
    AsyncOp

    RequestAsyncRead(String, Void*, Int32)

    Issues an asynchronous request to read all data from the given filepath or URI and writes the returned data to the passed in buffer up to 'bufferSize' bytes

    Declaration
    public static AsyncOp RequestAsyncRead(string path, void *buffer, int bufferSize)
    Parameters
    Type Name Description
    String path
    Void* buffer
    Int32 bufferSize
    Returns
    Type Description
    AsyncOp
    In This Article
    • Fields
      • PathSeparator
    • Methods
      • RequestAsyncRead(String)
      • RequestAsyncRead(String, Void*, Int32)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023