Example #1
0
    static int WriteBytes(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.NetModule.LuaBuffer.WriteBytes");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            Framework.NetModule.LuaBuffer obj = (Framework.NetModule.LuaBuffer)ToLua.CheckObject <Framework.NetModule.LuaBuffer>(L, 1);
            byte[] arg0 = ToLua.CheckByteBuffer(L, 2);
            obj.WriteBytes(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }