docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadFixedString

    ReadFixedString(byte*, int)

    Read and copy a fixed string (of unknown length) into the given buffer.

    Declaration
    public ushort ReadFixedString(byte* data, int maxLength)
    Parameters
    Type Name Description
    byte* data

    Pointer to the buffer to write the string bytes to.

    int maxLength

    Length of the buffer to write the string bytes to.

    Returns
    Type Description
    ushort

    Length of data read into byte array, or zero if error occurred.

    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)