Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JsonGen/StubGen] Support fixed arrays #111

Merged
merged 4 commits into from
Aug 8, 2024
Merged

Conversation

sebaszm
Copy link
Contributor

@sebaszm sebaszm commented Aug 2, 2024

struct Fixated {
  struct BluetoothInfo {
    uint8_t Addr[6]; // a bt address
    uint32_t UUIDs[8];
    string Descriptions[8];
  };

  uint8_t IpAddr[4]; // an ip address
  BluetoothInfo BtAddr[5]; 
  uint8_t Edid[128] /* @encode:base64 */;
};

virtual Core::hresult Amazing(Fixated param[4] /* @inout */) = 0;

Supports all types including PODs, supports nesting.

@sebaszm sebaszm marked this pull request as draft August 2, 2024 00:53
@sebaszm sebaszm marked this pull request as ready for review August 5, 2024 15:43
@sebaszm sebaszm requested a review from pwielders August 5, 2024 15:50
@sebaszm sebaszm merged commit 95d9733 into master Aug 8, 2024
49 checks passed
@sebaszm sebaszm deleted the development/fixed-arrays branch August 8, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants