docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Write

    Write(Buffer, byte)

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

    Declaration
    public static void Write(this Buffer buffer, byte value)
    Parameters
    Type Name Description
    Buffer buffer
    byte value

    The byte that should be written to the buffer.

    Write(Buffer, byte[])

    Writes an array of bytes to the buffer.

    Declaration
    public static void Write(this Buffer buffer, byte[] bytes)
    Parameters
    Type Name Description
    Buffer buffer
    byte[] bytes

    The array of bytes that should be written to the buffer.

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

    Writes an array of bytes to the buffer.

    Declaration
    public static void Write(this Buffer buffer, byte[] bytes, int offset, int length)
    Parameters
    Type Name Description
    Buffer buffer
    byte[] bytes

    The array of bytes that should be written to the buffer.

    int offset

    Read offset in bytes where the bytes should be read from.

    int length

    The number of bytes to be read from the input buffer.

    Write(Buffer, short)

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

    Declaration
    public static void Write(this Buffer buffer, short value)
    Parameters
    Type Name Description
    Buffer buffer
    short value

    The short that should be written to the buffer.

    Write(Buffer, int)

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

    Declaration
    public static void Write(this Buffer buffer, int value)
    Parameters
    Type Name Description
    Buffer buffer
    int value

    The integer that should be written to the buffer.

    Write(Buffer, float)

    Writes a floating point value to the buffer.

    Declaration
    public static void Write(this Buffer buffer, float value)
    Parameters
    Type Name Description
    Buffer buffer
    float value

    The floating point value that should be written to the buffer.

    Write(Buffer, bool)

    Writes a boolean to the buffer.

    Declaration
    public static void Write(this Buffer buffer, bool value)
    Parameters
    Type Name Description
    Buffer buffer
    bool value

    The boolean that should be written to the buffer.

    Write(Buffer, string)

    Writes a string to the buffer.

    Declaration
    public static void Write(this Buffer buffer, string value)
    Parameters
    Type Name Description
    Buffer buffer
    string value

    The string that should be written to the buffer.

    Write(Buffer, Buffer)

    Writes a buffer passed as argument to the buffer.

    Declaration
    public static void Write(this Buffer buffer, Buffer other)
    Parameters
    Type Name Description
    Buffer buffer
    Buffer other

    Write(Buffer, Vector2)

    Writes a vector2 to the buffer.

    Declaration
    public static void Write(this Buffer buffer, Vector2 value)
    Parameters
    Type Name Description
    Buffer buffer
    Vector2 value

    The vector2 that should be written to the buffer.

    Write(Buffer, Vector3)

    Writes a vector3 to the buffer.

    Declaration
    public static void Write(this Buffer buffer, Vector3 value)
    Parameters
    Type Name Description
    Buffer buffer
    Vector3 value

    The vector3 that should be written to the buffer.

    Write(Buffer, Vector4)

    Writes a vector4 to the buffer.

    Declaration
    public static void Write(this Buffer buffer, Vector4 value)
    Parameters
    Type Name Description
    Buffer buffer
    Vector4 value

    The vector4 that should be written to the buffer.

    Write(Buffer, Quaternion)

    Writes a quaternion to the buffer.

    Declaration
    public static void Write(this Buffer buffer, Quaternion value)
    Parameters
    Type Name Description
    Buffer buffer
    Quaternion value

    The quaternion that should be written to the buffer.

    Write(Buffer, Color)

    Writes a color value to the buffer.

    Declaration
    public static void Write(this Buffer buffer, Color value)
    Parameters
    Type Name Description
    Buffer buffer
    Color value

    The color value that should be written to the buffer.

    Write(Buffer, Color32)

    Writes a color32 value to the buffer.

    Declaration
    public static void Write(this Buffer buffer, Color32 value)
    Parameters
    Type Name Description
    Buffer buffer
    Color32 value

    The color32 value that should be written to the buffer.

    Write(Buffer, NativeString64)

    Declaration
    public static void Write(this Buffer buffer, NativeString64 value)
    Parameters
    Type Name Description
    Buffer buffer
    NativeString64 value
    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)