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

    Struct BlockStream.Writer

    Namespace: Unity.Collections
    Syntax
    public struct Writer

    Constructors

    Writer(BlockStream)

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

    Properties

    ForEachCount

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

    Methods

    Allocate(Int32)

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

    Allocate<T>()

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

    AppendForEachIndex(Int32)

    Declaration
    public void AppendForEachIndex(int foreachIndex)
    Parameters
    Type Name Description
    System.Int32 foreachIndex

    BeginForEachIndex(Int32)

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

    EndForEachIndex()

    Declaration
    public void EndForEachIndex()

    Write<T>(T)

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

    Operators

    Implicit(BlockStream to BlockStream.Writer)

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