Beispiel #1
0
 static public int ReadByte(IntPtr l)
 {
     try {
         SLua.ByteArray self = (SLua.ByteArray)checkSelf(l);
         var            ret  = self.ReadByte();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #2
0
 public static int ReadByte(IntPtr ptr)
 {
     try
     {
         ByteArray self = (ByteArray)LuaObject.CheckSelf(ptr);
         byte      ret  = self.ReadByte();
         LuaObject.PushValue(ptr, true);
         LuaObject.PushValue(ptr, ret);
         return(2);
     }
     catch (Exception e)
     {
         return(Error(ptr, e));
     }
 }