Пример #1
0
            internal static _SendFile SendFile()
            {
                if (_SendFileFunc == null)
                {
                    _SendFileFunc =
                        (_SendFile)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnTCPObject_sendFile"), typeof(_SendFile));
                }

                return(_SendFileFunc);
            }
Пример #2
0
            internal static _SendFile SendFile()
            {
                if (_SendFileFunc == null)
                {
                    _SendFileFunc =
                        (_SendFile)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnTCPObject_sendFile"), typeof(_SendFile));
                }

                return(_SendFileFunc);
            }