docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WriteExtensions

    Static class that contains various extension methods that allow writing data types to a buffer.

    Inheritance
    object
    WriteExtensions
    Namespace: Unity.SnapshotDebugger
    Assembly: solution.dll
    Syntax
    public static class WriteExtensions

    Methods

    Name Description
    Write(Buffer, bool)

    Writes a boolean to the buffer.

    Write(Buffer, byte)

    Writes a single byte (8-bit value) to the buffer.

    Write(Buffer, byte[])

    Writes an array of bytes to the buffer.

    Write(Buffer, byte[], int, int)

    Writes an array of bytes to the buffer.

    Write(Buffer, short)

    Writes a short (16-bit value) to the buffer.

    Write(Buffer, int)

    Writes an integer (32-bit value) to the buffer.

    Write(Buffer, float)

    Writes a floating point value to the buffer.

    Write(Buffer, string)

    Writes a string to the buffer.

    Write(Buffer, NativeString64)
    Write(Buffer, Buffer)

    Writes a buffer passed as argument to the buffer.

    Write(Buffer, Color)

    Writes a color value to the buffer.

    Write(Buffer, Color32)

    Writes a color32 value to the buffer.

    Write(Buffer, Quaternion)

    Writes a quaternion to the buffer.

    Write(Buffer, Vector2)

    Writes a vector2 to the buffer.

    Write(Buffer, Vector3)

    Writes a vector3 to the buffer.

    Write(Buffer, Vector4)

    Writes a vector4 to the buffer.

    WriteComponent<T>(Buffer, T)

    Writes a component to the buffer.

    WriteNativeArray<T>(Buffer, NativeArray<T>, Allocator)
    WriteNativeList<T>(Buffer, NativeList<T>, Allocator)
    WriteQuantized(Buffer, float)

    Writes a floating point value to the buffer.

    WriteQuantized(Buffer, Quaternion)

    Writes a quaternion to the buffer.

    WriteQuantized(Buffer, Vector2)

    Writes a vector2 value to the buffer.

    WriteQuantized(Buffer, Vector3)

    Writes a vector3 value to the buffer.

    WriteQuantized(Buffer, Vector4)

    Writes a vector4 value to the buffer.

    WriteToStream<T>(NativeArray<T>, Buffer)

    Writes a native array to the buffer.

    WriteToStream<T>(NativeList<T>, Buffer)

    Writes a native list to the buffer.

    WriteToStream<T>(NativeSlice<T>, Buffer)
    WriteTransform(Buffer, Transform)

    Writes a transform to the buffer.

    See Also

    Buffer
    In This Article
    Back to top
    Copyright © 2024 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)