Skip to content

Generating minimal unsafe bindings for pure C lib #989

Open
@raizam

Description

@raizam

I have a pure C library with structs and functions.

I just want to generate minimal bindings without any encapsulation and handle the higher level myself.
I'm looking for this kind of layout:

internal static class ModuleName
{
[DllImport( CallingConvention = CallingConvention.Cdecl)]
internal static unsafe extern CFunction(ref byte* ptr);

}

Having read the availlable docs, it's not clear to me how to achieve this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions