public void Broadcast(byte[] buffer, byte channel, ENetPacketFlags flags) { CheckDispose(); Native.ENetPacket *packet; fixed(byte *p = buffer) { packet = LibENet.PacketCreate((IntPtr)p, (UIntPtr)buffer.Length, flags & ~ENetPacketFlags.NoAllocate); } LibENet.HostBroadcast(Pointer, channel, packet); }