[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Byte swapping and bindat
From: |
Po Lu |
Subject: |
Byte swapping and bindat |
Date: |
Fri, 10 Jun 2022 21:00:31 +0800 |
I was looking into replacing some of the very complicated Motif binary
message parsing code in x-dnd.el with bindat, but there doesn't seem to
be a way to make bindat do byte-swapping automatically, which makes it a
lot less attractive.
Is there a way to specify a bindat type with fields whose endianess
depends on an external parameter (or another field of the type?)
Defining each type twice for both byte orders seems very ugly.
- Byte swapping and bindat,
Po Lu <=