Skip to content

Arrays aren't always null terminated #87

@RocketRide9

Description

@RocketRide9

https://docs.vala.dev/developer-guides/bindings/writing-a-vapi-manually/07-00-binding-a-c-function-s-parameter-and-return-types/07-03-arrays.html

Since Vala always allocates padding in arrays with the final element as null

It isn't true. string[] is indeed null terminated, but e.g. char*[] and uint[] aren't. Even const string[] isn't null terminated by design (https://gitlab.gnome.org/GNOME/vala/-/issues/1540).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions