[RESOLVED] Array and ByRef
I'm working on code the will be handling large one-dimensional arrays of bytes.
I've been told in the past that passing an array to a method ByVal can be a big performance hit so I'm enforcing ByRef by wrapping it in a class. The problem with this is that setting Data.ByteArray is still a ByVal operation.
My question now is this:
Is there a better way to handle arrays in vb ByRef? I don't want to move my whole app to c# to use pointers as I'm not as familiar with the language. I'm stuck with Byte arrays because IO.MemoryStream requires one and Bitmap.Save requires a stream when working from memory. (I hate temp files with a passion and won't use them.)