(java) Writing in file little endian

后端 未结 3 623
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 07:06

I\'m trying to write TIFF IFDs, and I\'m looking for a simple way to do the following (this code obviously is wrong but it gets the idea across of what I want):

         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-07 07:18

    Check out ByteBuffer, specifically the 'order' method. ByteBuffer is a blessing for those of us who need to interface with anything not Java.

提交回复
热议问题