Re: Transfer string data to unmanaged buffer
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Sun, 30 Apr 2006 00:53:20 +0200
Try using Buffer.BlockCopy() for the byte arrays, it is also faster than the
unmanaged code.
It wont work for fixed size buffers since they aren't proper arrays.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- Follow-Ups:
- Re: Transfer string data to unmanaged buffer
- From: Greg Young
- Re: Transfer string data to unmanaged buffer
- References:
- Re: Transfer string data to unmanaged buffer
- From: Greg Young [MVP]
- Re: Transfer string data to unmanaged buffer
- Prev by Date: How to bind a DataSet to a ReportViewer object?
- Next by Date: Fastest Way for Threads to Display on Picture Boxes?
- Previous by thread: Re: Transfer string data to unmanaged buffer
- Next by thread: Re: Transfer string data to unmanaged buffer
- Index(es):
Relevant Pages
|