Search Results for

    Show / Hide Table of Contents

    Message.SetBits Method

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    SetBits(ulong, int, int)

    Sets up to 64 bits at the specified position in the message.

    public Message SetBits(ulong bitfield, int amount, int startBit)

    Parameters

    ulong bitfield

    The bits to write into the message.

    int amount

    The number of bits to set.

    int startBit

    The bit position in the message at which to start writing.

    Returns

    Message

    The message instance.

    Remarks

    This method can be used to directly set a range of bits anywhere in the message without moving its internal write position. Data which was previously added to the message and which falls within the range of bits being set will be overwritten, meaning that improper use of this method will likely corrupt the message!

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