static public int WriteInt(IntPtr l) { try { SLua.ByteArray self = (SLua.ByteArray)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); self.WriteInt(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }