[Gdal-dev] ReadBlock in C#

Simon Perkins sy at perkins.net
Tue Mar 27 18:59:22 EDT 2007

Tamas Szekeres wrote:
> However I have some doubts why would it be more efficient than calling
> the ReadRaster/WriteRaster functions in exchange for the additional
> problems may occur due to the possible errors when passing incorrect
> parameters.
> In addition I cannot see how to avoid the extra array copy when
> marsaling the code between the C and the C# memory. Or would you
> possibly use the native pointer with the fixed statement inside an
> unsafe block?

We talked about having an unsafe version of Read/WriteRaster that 
avoided the array copy a while back. Did it make it in there?



More information about the Gdal-dev mailing list