{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct UnsafeStream.Writer | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct UnsafeStream.Writer

    Writes data into a buffer of an UnsafeStream.

    Namespace: Unity.Collections.LowLevel.Unsafe
    Assembly: solution.dll
    Syntax
    public struct UnsafeStream.Writer
    Remarks

    An individual writer can only be used for one buffer of one stream. Do not create more than one writer for an individual buffer.

    Properties

    Name Description
    ForEachCount

    The number of buffers in the stream of this writer.

    Methods

    Name Description
    Allocate(int)

    Allocate space in a buffer.

    Allocate<T>()

    Allocate space in a buffer.

    BeginForEachIndex(int)

    Readies this writer to write to a particular buffer of the stream.

    EndForEachIndex()

    Readies the buffer written by this writer for reading.

    Write<T>(T)

    Write a value to a buffer.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)