Search Results for

    Show / Hide Table of Contents

    Message.GetVarLong Method

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    GetVarLong()

    Retrieves a positive or negative number from the message, using fewer bits for smaller values.

    public long GetVarLong()

    Returns

    long

    The value that was retrieved.

    Remarks

    The value is retrieved in segments of 8 bits, 1 of which is used to indicate whether or not another segment follows. As a result, small values are retrieved from the message using fewer bits, while large values will require a few more bits than they would if they were retrieved via GetByte(), GetUShort(), GetUInt(), or GetULong() (or their signed counterparts).

    • Improve this Doc
    • View Source
    • Support Riptide
    In This Article
    Back to top Copyright © Tom Weiland 2022
    Made with DocFX