From 72ff5322f5e0aa687a624ca726a0f4b613e51923 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 17 Dec 2008 17:18:52 +0000 Subject: * Replace manually zeroing with Array.Clear(). Thanks cmickeyb --- OpenSim/Framework/PacketPool.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs index e24da42..9994fac 100644 --- a/OpenSim/Framework/PacketPool.cs +++ b/OpenSim/Framework/PacketPool.cs @@ -115,9 +115,7 @@ namespace OpenSim.Framework { PacketType type = GetType(bytes); - int z; - for (z = 0 ; z < zeroBuffer.Length ; z++) - zeroBuffer[z] = 0; + Array.Clear(zeroBuffer, 0, zeroBuffer.Length); int i = 0; Packet packet = GetPacket(type); -- cgit v1.1