Beispiel #1
0
 public static int ReadSByte(IntPtr ptr)
 {
     try
     {
         ByteArray self = (ByteArray)LuaObject.CheckSelf(ptr);
         sbyte     ret  = self.ReadSignedByte();
         LuaObject.PushValue(ptr, true);
         LuaObject.PushValue(ptr, ret);
         return(2);
     }
     catch (Exception e)
     {
         return(Error(ptr, e));
     }
 }