Hi,

There is not much consideration as the default endian of Java (in ByteBuffer) 
is BigEndian and we are just using the default one. You may have to ask the JDK 
team for more detailed reasons why they chose it. But as far as I can remember, 
in the OS field, BigEndian is a common practice, while in the network field, it 
is usually the opposite. However, I do not think it matters to use either of 
them as long as you keep it consistent in your code, just like there are some 
languages that read from left to right and others that read from right to left.

Best,
Tian Jiang

从 Windows 版邮件发送

发件人: Xiangdong Huang
发送时间: 2021年9月27日 8:55
收件人: dev; 江天
主题: Re: Endianess.

Hi,

I remember it is unified by Tian Jiang.
 @江天 , can you remember why we did that?
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院

Giorgio Zoppi <[email protected]> 于2021年9月27日周一 上午2:26写道:
>
> Hello IoTDBers,
> on disk, the java writes in BigEndian the buffer right?
> I am looking at parquet, especially the implementation in C++, there are
> similarities. Why did you choose your own?
> BR,
> Giorgio.

Reply via email to