little endian DataInputStream [英] little endian DataInputStream

查看:290
本文介绍了little endian DataInputStream的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法强制DataInputStream读取little-endian数据? Thx

Is there any way to force DataInputStream to read little-endian data?? Thx

PS。执行字节缓冲区转换不是很方便,因为我正在处理具有大量32位和16位成员的C类型结构。

PS. Doing byte-buffer conversions is not very convinient as I'm dealing with C-type structs that have lots of 32-bit and 16-bit members.

推荐答案

没有。您需要将流包装为从big endian转换为little endian。你可以google并找到几个小端流的实现....

No. You'd need to wrap the stream to convert from big endian to little endian. You can google and find several implementations of little endian streams....

这篇关于little endian DataInputStream的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆