I am creating a file reader in C # and large amounts of data will be listed. I want to use the same buffer for each item that I read, and then pass the buffer for further processing by the client. The API would be cleaner if I could return the byte[] correct size, rather than the raw buffer and length.
Is it possible to do this in C # without copying the memory?
source share