Skip to content

Commit

Permalink
Leave a note regarding endianness
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Jan 16, 2024
1 parent 955046c commit 583177d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/clap/plugin-id.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ typedef struct clap_plugin_id {
// const uint8_t * data = (const uint8_t *)&binary_id;
// char *buffer = malloc(2 * sizeof(binary_id) + 1);
// hex_encode(data, sizeof (binary_id), buffer);
//
// Note: if the binary id is sensible to the CPU endianness, the encoded id will be too.
// As a result, the id should be decoded immediately by the consumer.
const char *id;
} clap_plugin_id_t;

0 comments on commit 583177d

Please sign in to comment.