You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
630 B
29 lines
630 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sog
|
|
{
|
|
public class AsyncState
|
|
{
|
|
public int m_offset { get; set; }
|
|
public int m_count { get; set; }
|
|
public bool m_keepAlive { get; set; }
|
|
|
|
public void Clear()
|
|
{
|
|
m_offset = -1;
|
|
m_count=0;
|
|
m_keepAlive = false;
|
|
}
|
|
|
|
public AsyncState(int offset, int count, bool keepAlive=false)
|
|
{
|
|
m_offset = offset;
|
|
m_count = count;
|
|
m_keepAlive = keepAlive;
|
|
}
|
|
}
|
|
}
|
|
|