Exemplo n.º 1
0
 static public int Clear(IntPtr l)
 {
     try {
         SLua.ByteArray self = (SLua.ByteArray)checkSelf(l);
         self.Clear();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 2
0
 public static int Clear(IntPtr ptr)
 {
     try
     {
         ByteArray self = (ByteArray)LuaObject.CheckSelf(ptr);
         self.Clear();
         LuaObject.PushValue(ptr, true);
         return(1);
     }
     catch (Exception e)
     {
         return(Error(ptr, e));
     }
 }