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