.net - Faster way to convert byte array to int -


is there faster way bitconverter.toint32 convert byte array int value?

if remember correctly, implementation uses unsafe code (treating byte* int*), hard beat, other alternative shifting.

however, lots of work in area, unlikely genuine bottleneck irrelevant. i/o main issue, typically.

getbytes(int), however, is more expensive (in high volume) due array / heap allocation.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -