Struct BlockStream.Reader | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct BlockStream.Reader

    Namespace: Unity.Collections
    Syntax
    public struct Reader

    Constructors

    Reader(BlockStream)

    Declaration
    public Reader(BlockStream stream)
    Parameters
    Type Name Description
    BlockStream stream

    Properties

    ForEachCount

    Declaration
    public int ForEachCount { get; }
    Property Value
    Type Description
    System.Int32

    RemainingItemCount

    Declaration
    public int RemainingItemCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    BeginForEachIndex(Int32)

    Declaration
    public int BeginForEachIndex(int foreachIndex)
    Parameters
    Type Name Description
    System.Int32 foreachIndex
    Returns
    Type Description
    System.Int32

    The number of elements at this index

    Peek<T>()

    Declaration
    public T Peek<T>()
        where T : struct
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Read(Int32)

    Declaration
    public byte *Read(int size)
    Parameters
    Type Name Description
    System.Int32 size
    Returns
    Type Description
    System.Byte*

    Read<T>()

    Declaration
    public T Read<T>()
        where T : struct
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Write<T>(T)

    Declaration
    public void Write<T>(T d)
        where T : struct
    Parameters
    Type Name Description
    T d
    Type Parameters
    Name Description
    T

    Operators

    Implicit(BlockStream to BlockStream.Reader)

    Declaration
    public static implicit operator BlockStream.Reader(BlockStream stream)
    Parameters
    Type Name Description
    BlockStream stream
    Returns
    Type Description
    BlockStream.Reader
    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