阅读背景:

Java:需要优化(快速)方法将整数数组写入FileOutputStream

来源:互联网 

Searching yields many questions about how to convert an int to byte[]. I have a project with a critical loop that writes a long int[] to a FileOutputStream. FileOutputStream requires a byte[] for writing. I can brute-force different methods; I'm looking for a way to send an int[] directly to a FileOutputStream or the fastest method to convert int[] to byte[] - something like wrapping a buffer. I see ways to wrap a byte[] to convert to int[] and float[]... but none the other way (from int[] to byte[]). Thanks.Searching yields many questions about how to co




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: