Esempio n. 1
0
 public T ReadVar <T>(uint max)
 {
     try
     {
         return(CacheReadVar <T>(max));
     }
     catch (SystemException ex)
     {
         throw MapException.ReadVar(typeof(T), max, ex);
     }
 }
Esempio n. 2
0
 public T ReadFix <T>(uint len)
 {
     try
     {
         return(CacheReadFix <T>(len));
     }
     catch (SystemException ex)
     {
         throw MapException.ReadFix(typeof(T), len, ex);
     }
 }
Esempio n. 3
0
 public T Read <T>()
 {
     try
     {
         return(CacheRead <T>());
     }
     catch (SystemException ex)
     {
         throw MapException.ReadOne(typeof(T), ex);
     }
 }
Esempio n. 4
0
 public void WriteVar <T>(uint max, T item)
 {
     try
     {
         CacheWriteVar(max, item);
     }
     catch (SystemException ex)
     {
         throw MapException.WriteVar(typeof(T), max, ex);
     }
 }
Esempio n. 5
0
 public void WriteFix <T>(uint len, T item)
 {
     try
     {
         CacheWriteFix(len, item);
     }
     catch (SystemException ex)
     {
         throw MapException.WriteFix(typeof(T), len, ex);
     }
 }
Esempio n. 6
0
 public void Write <T>(T item)
 {
     try
     {
         CacheWrite(item);
     }
     catch (SystemException ex)
     {
         throw MapException.WriteOne(typeof(T), ex);
     }
 }