Skip to content

ali2236/dart_pointers

Repository files navigation

Example:

  var a = Pointer(121);
  var b = Pointer(547);
  a.swap(b);

  var c = Pointer();
  c.value = 'a';

  var d = malloc(10);
  d[5] = 'abc';
  d[8] = 148;
  d[7] = 5.1;
  d[1] = false;

  print(a);
  print(b);
  print(c);
  print(d);


  realloc(d, 15);
  d[12] = '12th';
  print(d);

  free(d);
  print(d);

Output:

547
121
a
[null, false, null, null, null, abc, null, 5.1, 148, null]
[null, false, null, null, null, abc, null, 5.1, 148, null, null, null, 12th, null, null]
null

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages