Search Results for

    Show / Hide Table of Contents

    Converter.SetBits Method

    Namespace: Riptide.Utils
    Assembly: RiptideNetworking.dll

    Overloads

    SetBits(byte, int, byte[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    SetBits(ushort, int, byte[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    SetBits(uint, int, byte[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    SetBits(ulong, int, byte[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    SetBits(ulong, int, ulong[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    SetBits(byte, int, byte[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    public static void SetBits(byte bitfield, int amount, byte[] array, int startBit)

    Parameters

    byte bitfield

    The bitfield from which to write the bits into the array.

    int amount

    The number of bits to write.

    byte[] array

    The array to write the bits into.

    int startBit

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

    SetBits(ushort, int, byte[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    public static void SetBits(ushort bitfield, int amount, byte[] array, int startBit)

    Parameters

    ushort bitfield

    The bitfield from which to write the bits into the array.

    int amount

    The number of bits to write.

    byte[] array

    The array to write the bits into.

    int startBit

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

    SetBits(uint, int, byte[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    public static void SetBits(uint bitfield, int amount, byte[] array, int startBit)

    Parameters

    uint bitfield

    The bitfield from which to write the bits into the array.

    int amount

    The number of bits to write.

    byte[] array

    The array to write the bits into.

    int startBit

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

    SetBits(ulong, int, byte[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    public static void SetBits(ulong bitfield, int amount, byte[] array, int startBit)

    Parameters

    ulong bitfield

    The bitfield from which to write the bits into the array.

    int amount

    The number of bits to write.

    byte[] array

    The array to write the bits into.

    int startBit

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

    SetBits(ulong, int, ulong[], int)

    Takes amount bits from bitfield and writes them into array, starting at startBit.

    public static void SetBits(ulong bitfield, int amount, ulong[] array, int startBit)

    Parameters

    ulong bitfield

    The bitfield from which to write the bits into the array.

    int amount

    The number of bits to write.

    ulong[] array

    The array to write the bits into.

    int startBit

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

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