Search Results for

    Show / Hide Table of Contents

    Message.AddVarLong Method

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    AddVarLong(long)

    Adds a positive or negative number to the message, using fewer bits for smaller values.

    public Message AddVarLong(long value)

    Parameters

    long value

    The value to add.

    Returns

    Message

    The message that the value was added to.

    Remarks

    The value is added in segments of 8 bits, 1 of which is used to indicate whether or not another segment follows. As a result, small values are added to the message using fewer bits, while large values will require a few more bits than they would if they were added via AddByte(byte), AddUShort(ushort), AddUInt(uint), or AddULong(ulong) (or their signed counterparts).

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