best way to pass binary data from c++ to c#

T

tuvman

Hello,

Hello I'm writing an HTTPHandler which needs to call some code in a
managed c++ class and write binary data returned from this method to
context.Response.OutputStream. I'm using a managed c++ wrapper because
the code which generates this data is written in old style c++ and
uses malloc/lots of old style C data structures.

What is the best way to return binary data from C++ to C#. Is there
any way to avoid having to copying the data to a managed buffer?

best,
Tuviah
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top