Skip to content

Instantly share code, notes, and snippets.

View rbanay's full-sized avatar

Robbie Banay rbanay

View GitHub Profile
@rbanay
rbanay / NimString.cs
Last active November 5, 2015 18:17 — forked from zah/ImportNim.cs
NimString in C#
// variant 1) directly exposing the Nim string type to C#
...
[StructLayout(LayoutKind.Sequential)]
public struct NimString
{
public uint Len;
public uint Capacity;
public LPStr Text;
}
...