docs.unity3d.com
    Show / Hide Table of Contents

    Interface IDownloadItem

    Represents a single file download request from a Cache Server.

    Namespace: UnityEditor.Build.CacheServer
    Syntax
    public interface IDownloadItem

    Properties

    Id

    the FileId (guid/hash pair) of the file to download

    Declaration
    FileId Id { get; }
    Property Value
    Type Description
    FileId

    Type

    the FileType for the given FileId to download

    Declaration
    FileType Type { get; }
    Property Value
    Type Description
    FileType

    Methods

    Finish()

    Method called when a download is finished. Used to finalize and cleanup a single file download. e.g. to move a temporary file into place.

    Declaration
    void Finish()

    GetWriteStream(Int64)

    Provides a writable stream for saving downloaded file bytes

    Declaration
    Stream GetWriteStream(long size)
    Parameters
    Type Name Description
    Int64 size

    Size of file to download

    Returns
    Type Description
    Stream

    A writable stream

    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