Search Results for

    Show / Hide Table of Contents

    Message.AddBytes Method

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    Overloads

    AddBytes(byte[], bool)

    Adds a byte array to the message.

    AddBytes(byte[], int, int, bool)

    Adds a byte array to the message.

    AddBytes(byte[], bool)

    Adds a byte array to the message.

    public Message AddBytes(byte[] array, bool includeLength = true)

    Parameters

    byte[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    AddBytes(byte[], int, int, bool)

    Adds a byte array to the message.

    public Message AddBytes(byte[] array, int startIndex, int amount, bool includeLength = true)

    Parameters

    byte[] array

    The array to add.

    int startIndex

    The position at which to start adding from the array.

    int amount

    The amount of bytes to add from the startIndex of the array.

    bool includeLength

    Whether or not to include the amount in the message.

    Returns

    Message

    The message that the array was added to.

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