I have a C++ class with a public method like so:
typedef std::vector<char> FileBuffer; void ArchiveWriter::write(const std::string& name, const FileBuffer& fileBuffer);
I need to use this from C#, so I've written a C++/CLI wrapper DLL around the class. I'm a little stuck on the method above, as I'm not sure how I can pass a byte buffer from C# and convert it to a vector<char>.
My understanding of C# isn't really up to scratch, but I believe a byte type is similar to std::vector<char>?
Any help is appreciated!
Edited by Telios, 01 August 2012 - 12:57 PM.