docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method Peek

    Peek<T>()

    Reads the next value from the buffer. Does not advance the reader.

    Declaration
    public ref T Peek<T>() where T : unmanaged
    Returns
    Type Description
    T

    A reference to the next value from the buffer.

    Type Parameters
    Name Description
    T

    The type of value to read.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the read would go past the end of the 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)