TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ SendBitArray()

static void Terraria.Utils.SendBitArray ( BitArray arr,
BinaryWriter writer )
inlinestatic

Bit packs a BitArray in to a Byte Array and then sends the byte array.

Definition at line 3224 of file Utils.cs.

3225 {
3226 byte[] result = new byte[(arr.Length - 1) / 8 + 1];
3227 arr.CopyTo(result, 0);
3228 writer.Write(result);
3229 }

Referenced by Terraria.ModLoader.BiomeLoader.SendCustomBiomes().

+ Here is the caller graph for this function: