Skip to content

[C++][IPC] size in message written in native endian #17268

@asfimport

Description

@asfimport

According to this specification, metadata length and footer size should be written in little endian

However, the current implementation writes them in native endian.

On little-endian

00000000: 41 52 52 4f 57 31 00 00 ff ff ff ff 88 07 00 00 10 00 00 00 00 00 0a 00 0e 00 06 00 05 00 08 00  ARROW1..........................
...
00005700: 62 6f 6f 6c 5f 6e 75 6c 6c 61 62 6c 65 00 00 00 d0 07 00 00 41 52 52 4f 57 31                    bool_nullable.......ARROW1

On big-endian

00000000: 41 52 52 4f 57 31 00 00 ff ff ff ff 00 00 07 90 10 00 00 00 00 00 0a 00 0e 00 06 00 05 00 08 00  ARROW1..........................
                                              ~~~~~~~~~~~
...
00005700: 04 00 00 00 0d 00 00 00 62 6f 6f 6c 5f 6e 75 6c 6c 61 62 6c 65 00 00 00 00 00 07 d0 41 52 52 4f  ........bool_nullable.......ARRO
                                                                                  ~~~~~~~~~~~
00005720: 57 31  

Reporter: Kazuaki Ishizaki / @kiszk
Assignee: Kazuaki Ishizaki / @kiszk

PRs and other links:

Note: This issue was originally created as ARROW-9417. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions