Skip to content

Commit

Permalink
use
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Dec 19, 2024
1 parent fb245f1 commit 8285871
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/awkward/operations/ak_from_buffers.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,7 @@ def _from_buffer(
return array[:count]
else:
array = nplike.frombuffer(buffer, dtype=dtype, count=count)
if byteorder != ak._util.native_byteorder:
return array.byteswap(inplace=False)
else:
return array
return ak._util.native_to_byteorder(array, byteorder)


def _reconstitute(
Expand Down

0 comments on commit 8285871

Please sign in to comment.