EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Alternative callback events that don't allocate byte[]'s

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
Posted: 02/21/2014 03:43:15
by VoxPopuli Robot  (EldoS Corp.)

Currently many of the callback events (e.g. OnReadFileC and OnWriteFileC) allocate new byte arrays and copy buffers before and after the handlers are invoked. In addition to placing extra load on the GC (and the LOH) it often results in wasted performance when the copying isn't required.

I propose that there should be overloads for these handlers that simply pass the IntPtr references supplied by the driver. Obviously this is for more advanced users, but if you can't work with IntPtrs you should probably not be playing around with filter drivers anyway :)

If you like the idea, vote for it on https://www.eldos.com/cbflt/wishlist.php



Topic viewed 2155 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!