예제 #1
0
 public T ReadVar <T>(uint max)
 {
     try
     {
         return(CacheReadVar <T>(max));
     }
     catch (SystemException ex)
     {
         throw MapException.ReadVar(typeof(T), max, ex);
     }
 }
예제 #2
0
 public T ReadFix <T>(uint len)
 {
     try
     {
         return(CacheReadFix <T>(len));
     }
     catch (SystemException ex)
     {
         throw MapException.ReadFix(typeof(T), len, ex);
     }
 }
예제 #3
0
 public T Read <T>()
 {
     try
     {
         return(CacheRead <T>());
     }
     catch (SystemException ex)
     {
         throw MapException.ReadOne(typeof(T), ex);
     }
 }
예제 #4
0
파일: Writer.cs 프로젝트: qipa/OncRpc
 public void WriteVar <T>(uint max, T item)
 {
     try
     {
         CacheWriteVar(max, item);
     }
     catch (SystemException ex)
     {
         throw MapException.WriteVar(typeof(T), max, ex);
     }
 }
예제 #5
0
파일: Writer.cs 프로젝트: qipa/OncRpc
 public void WriteFix <T>(uint len, T item)
 {
     try
     {
         CacheWriteFix(len, item);
     }
     catch (SystemException ex)
     {
         throw MapException.WriteFix(typeof(T), len, ex);
     }
 }
예제 #6
0
파일: Writer.cs 프로젝트: qipa/OncRpc
 public void Write <T>(T item)
 {
     try
     {
         CacheWrite(item);
     }
     catch (SystemException ex)
     {
         throw MapException.WriteOne(typeof(T), ex);
     }
 }