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

Nested arrays expressed as individual elements #13

Closed
kingwill101 opened this issue Mar 7, 2020 · 1 comment
Closed

Nested arrays expressed as individual elements #13

kingwill101 opened this issue Mar 7, 2020 · 1 comment

Comments

@kingwill101
Copy link

Hi i'm trying to follow your library to learn a bit more about dart ffi and i'm curious about this section

where the unix definition is

// cc_t c_cc[NCCS]; /* control chars */

but you chose to do

  // This replaces c_cc[20]
  @Int8()
  int c_cc0;
  @Int8()
  int c_cc1;
  @Int8()
  int c_cc2;
  @Int8()
  int c_cc3;
  @Int8()
  int c_cc4;
  @Int8()
  int c_cc5;
  @Int8()
  int c_cc6;
  @Int8()
  int c_cc7;
  @Int8()
  int c_cc8;
  @Int8()
  int c_cc9;
  @Int8()
  int c_cc10;
  @Int8()
  int c_cc11;
  @Int8()
  int c_cc12;
  @Int8()
  int c_cc13;
  @Int8()
  int c_cc14;
  @Int8()
  int c_cc15;
  @Int8()
  int c_cc16; // VMIN
  @Int8()
  int c_cc17; // VTIME
  @Int8()
  int c_cc18;
  @Int8()
  int c_cc19;

is there a reference anywhere than explains this?
taken from here

// This replaces c_cc[20]

@timsneath
Copy link
Owner

Yeah, this is a workaround for the lack of support for inline arrays (dart-lang/sdk#35763).

@timsneath timsneath changed the title Not an issue Nested arrays expressed as individual elements Mar 27, 2020
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

No branches or pull requests

2 participants