1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 06:36:30 +09:00

NetConnection.UnsentBytesCount added

This commit is contained in:
lidgren
2010-09-07 06:53:23 +00:00
parent fa3bd2646f
commit c185b3b16f
5 changed files with 55 additions and 3 deletions

View File

@@ -195,6 +195,22 @@ namespace Lidgren.Network
return false;
}
public T[] ToArray()
{
lock (m_lock)
{
T[] retval = new T[m_size];
int ptr = m_head;
for (int i = 0; i < m_size; i++)
{
retval[i] = m_items[ptr++];
if (ptr >= m_items.Length)
ptr = 0;
}
return retval;
}
}
public void Clear()
{
lock (m_lock)