docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadPartialValue

    ReadPartialValue<T>(out T, int, int)

    Read a partial value. The value is zero-initialized and then the specified number of bytes is read into it.

    Declaration
    public void ReadPartialValue<T>(out T value, int bytesToRead, int offsetBytes = 0) where T : unmanaged
    Parameters
    Type Name Description
    T value

    Value to read

    int bytesToRead

    Number of bytes

    int offsetBytes

    Offset into the value to write the bytes

    Type Parameters
    Name Description
    T

    the type value to read the value into

    Exceptions
    Type Condition
    InvalidOperationException
    OverflowException
    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)