>In managed c++, what is the most efficient way to copy the contents of a
>native buffer (BYTE*) to a managed stream?
As of .NET 2.0 you can use the System.IO.UnmanagedMemoryStream. It
wraps the native buffer directly so it doesn't require any copying.
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.