示例#1
0
 public AsyncCallBackReader(FileStream s, int size, AsyncBytesReadDel meth)
 {
     stream         = s;
     data           = new byte[size];
     callbackMethod = meth;
     asRes          = s.BeginRead(data, 0, size, ReadIsComplete, null);
 }
 public AsyncCallBackReader(FileStream s, int size, AsyncBytesReadDel meth)
 {
     stream = s;
     data = new byte[size];
     callbackMethod = meth;
     asRes = s.BeginRead(data, 0, size, ReadIsComplete, null);
 }