docs.unity3d.com
    Show / Hide Table of Contents

    Delegate TextLoggerParser.OutputWriterHandler

    Defines a delegate to handle writing the field data for context data structs.

    Namespace: Unity.Logging
    Syntax
    public delegate TextLoggerParser.ContextWriteResult OutputWriterHandler(ref UnsafeText outputUnsafeText, byte *dataBuffer, int bufferLength);
    Parameters
    Type Name Description
    UnsafeText outputUnsafeText

    Reference to a UnsafeListString object to which the delegate writes the struct's data.

    Byte* dataBuffer

    Pointer to the byte buffer holding the current generated struct data.

    Int32 bufferLength

    Length of the dataBuffer

    Returns
    Type Description
    TextLoggerParser.ContextWriteResult

    Value indicating delegate successfully handled the data or not.

    Remarks

    The TextLoggerParser calls into these delegates in order to write the struct data to the output string. Delegates can be added or removed from the active list of handlers by calling and respectively. By default, source generation will produce the output handlers and add the delegates to the handle list.

    NOTE: Burst FunctionPointers only support delegates with primitive parameter types; structs cannot be passed, even by reference.

    Back to top
    Terms of use
    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