search for: pinvok

Displaying 19 results from an estimated 19 matches for "pinvok".

Did you mean: pinvoke
2009 Apr 02
0
[LLVMdev] patch: MSIL backend - interfacing vararg pinvoke functions with Mono
Hi, This patch allows executing code with vararg pinvoke functions under Mono. It generates separate function declaration for each call signature. Artur -------------- next part -------------- A non-text attachment was scrubbed... Name: varargs.patch Type: text/x-patch Size: 5331 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llv...
2006 Oct 12
1
using speex in C#
You could compile Speex as a DLL (see libspeex_dynamic.dsp) and use PInvoke. http://en.wikipedia.org/wiki/PInvoke Note that Speex will still be executing as unmanaged code and your program will have the added dependency of the native Speex DLL. It appears that someone created a "Speex.NET" based on JSpeex, but I didn't find any useful info on it. You ma...
2007 Jun 14
2
FLAC: library for C#
...onable for what I do), but it can read and write metadata. It still needs a bit of polishing (esp. the documentation to be usable), but I'd be willing to share it at some point. Note that it's not open source for the time being, but that could be considered. Pyt. PS: If anybody has a real pinvoke wrapper for the reference lib, I'd gladly take it... ! On 6/14/07, Jud White - jwhite@cdtag.com <+flac- dev+pyt+af0255c9db.jwhite#cdtag.com@spamgourmet.com> wrote: > > Harry, > > DllImport is the way to go, but it's not always straightforward what to > do (callbacks,...
2010 Jan 04
0
[LLVMdev] C library function declarations
...format LLVM expects? > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > Usually, this would be defined by the language. For instance, C# uses PInvoke to declare functions that are implemented natively in some other language, and the programmer usually manually writes PInvoke declarations for whichever library functions he wants to call. Many languages try to wrap the standard C libraries and expose equivalent functionality through the language...
2010 Jan 04
1
[LLVMdev] C library function declarations
...The same question applies > > there: Is there a way, by parsing C header files or otherwise, to > > obtain a list of functions that are defined in a given library, in the > > format LLVM expects? > > Usually, this would be defined by the language. For instance, C# uses > PInvoke to declare functions that are implemented natively in some > other language, and the programmer usually manually writes PInvoke > declarations for whichever library functions he wants to call. > > Many languages try to wrap the standard C libraries and expose > equivalent functional...
2010 Jan 04
2
[LLVMdev] C library function declarations
When implementing a language using LLVM as the backend, it is necessary to give programs written in that language, access to the C standard library functions. The Kaleidoscope tutorial shows how to do this for individual functions using extern declarations, but in general it would be necessary to have those predefined for the full standard library. Presumably these would contain exactly the
2007 Jun 14
2
FLAC: library for C#
Harry Sack wrote: > > but aren't they C++ headers en lib's? Not C++, C. > I have no idea how I can include a C++ > header in a C# project. > It this even possible? Yes. Google for "dllimport csharp". Erik -- ----------------------------------------------------------------- Erik de Castro Lopo -----------------------------------------------------------------
2009 Apr 03
6
[LLVMdev] Patch: MSIL backend global pointers initialization
...ways be there. > Ok, thanks. > Please refine you patches to be consistent with LLVM's coding style and > I'll apply them. > I'm sorry, attached again. So again, one of them makes the global pointers initialization work. The second one allows executing code with vararg pinvoke functions under Mono. It generates separate function declaration for each call signature. Artur -------------- next part -------------- A non-text attachment was scrubbed... Name: varargs.patch Type: text/x-patch Size: 5307 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm...
2009 Apr 03
0
[LLVMdev] Patch: MSIL backend global pointers initialization
Hi, Artur > So again, one of them makes the global pointers initialization work. > The second one allows executing code with vararg pinvoke functions under > Mono. It generates separate function declaration for each call signature. Is this mono-only feature? Or pretty "universal" one? -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2007 Jun 14
0
FLAC: library for C#
...etadata. It still needs a bit of > polishing > (esp. the documentation to be usable), but I'd be willing to share it > at > some point. Note that it's not open source for the time being, but > that > could be considered. > > Pyt. > > PS: If anybody has a real pinvoke wrapper for the reference lib, I'd > gladly > take it... ! > > > On 6/14/07, Jud White - jwhite@cdtag.com <+flac- > dev+pyt+af0255c9db.jwhite#cdtag.com@spamgourmet.com> wrote: > > > > Harry, > > > > DllImport is the way to go, but it's not...
2014 Nov 29
3
[LLVMdev] Frontend: How to use Member to Function Pointer as callbacks
Hello, As part of a MSIL (i.e. C#) to LLVM frontend I am currently working on ( https://github.com/xen2/SharpLang ), I would need some help/hint about how to properly design "PInvoke callbacks". Through "PInvoke" mechanism .NET allows you to call C functions, i.e.: C#: [DllImport("libc.so")] extern void mempcy(void* dest, void* src, int size); // declaration of C function memcpy(ptr1, ptr2, 32); // let's use it in C# code That's quite easy t...
2012 Mar 04
1
[LLVMdev] LLVM from .NET
...t done the trick and I cannot figure out how to call the correct LLVMInitializeNativeTarget function from .NET. Does anyone know the solutions to these problems or, better yet, have a pre-existing .NET binding to LLVM where everything just works effortlessly? FWIW, I tried running Microsoft's PInvoke Interop Assistant on LLVM-3.0.dll in an attempt to generate .NET bindings automatically but it chokes on the DLL. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com
2009 Apr 03
0
[LLVMdev] Patch: MSIL backend global pointers initialization
Hi, Artur > I'm working on that backend now, so probably I'll send some more patches > soon. I'd be grateful if you could give me some suggestions how to add > some test for that backend to the test-suite. On Linux the output code > could be run on Mono and compared with outputs for other backends but > I'm not sure if it's preferable to involve third party
2015 Mar 30
1
Opus on iOS - ARM64
...oneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk" What's also interesting is that the decoder doesn't seem to have any problem decoding the data on ARM64. It happily decodes it from 1275 back to the original 1280 bytes of audio data. Also of note, I'm calling into Opus from C# using PInvokes. Again, it seems to work fine on everything but ARM64. Thoughts? I can provide whatever other information is needed. -- Chris Conover Mobile Team Lead/Sports Product Manager, Curse Inc. Skype: cconover-skype Cell: 954-258-8274 -------------- next part -------------- An HTML attachment was scru...
2009 Apr 02
2
[LLVMdev] Patch: MSIL backend global pointers initialization
Hi, Here's a patch that fixes initialization of global pointers (also function pointers). I'm working on that backend now, so probably I'll send some more patches soon. I'd be grateful if you could give me some suggestions how to add some test for that backend to the test-suite. On Linux the output code could be run on Mono and compared with outputs for other backends but
2020 Oct 10
2
Lookup sid with libsmbclient (invoked from c# on mono)
...sa > rpc implementation. > The main one (and exported symbol on libsmbclient) is > rpccli_lsa_lookup_sids. (I'm using nm -D) > I also found dcerpc_lsa_lookup_sids in liblibcli-lsa.3 > > The problem is by writting c# call, I've to write a lot of stuff and magic > (called pinvoke) and I'm wasting a lot of time calling some functions, > before finding out that there is no export is libsmbclient. > I've tried indeed to port some code from rpcclient (the lsalookupsid > function) > > My question is simple: > can someone point me to the right flow of f...
2018 Nov 15
2
Question about libopusfile downloading the last 64K when duration is not needed
I am writing a program that retrieves and plays .opus files over the network. I am using the C# PInvoke wrapper OpusFileSharp, which calls into libopusfile and passes callbacks for read, seek, and tell. I want to enable seeking via the seek callback by not returning -1, but I find that as soon as I do libopusfile requests the last 64K of the .opus file, probably so it can calculate the duration....
2006 Nov 27
1
R.DLL mapping by P/Invoke
...dFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0 delegate void dgBusy(int which); #endregion #region <BDX Interops frm RPROXY.DLL> /* const string strBdxGetObject = "BDX_get_vtbl at 8"; /// <summary> /// PInvoke with automatic marshal on GetProcAddress to return dgScProxyGetObject function /// </summary> /// <param name="hModule">HMODULE of the RPROXY.DLL</param> /// <param name="procName">*MUST* be strScProxyGetObject</param>...
2007 Oct 17
0
Using R.dll in .NET IPC
...dFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0 delegate void dgBusy(int which); #endregion #region <BDX Interops frm RPROXY.DLL> /* const string strBdxGetObject = "BDX_get_vtbl at 8"; /// <summary> /// PInvoke with automatic marshal on GetProcAddress to return dgScProxyGetObject function /// </summary> /// <param name="hModule">HMODULE of the RPROXY.DLL</param> /// <param name="procName">*MUST* be strScProxyGetObject</param>...