27 return str.Length * 4 + 1;
52 for (ptr = (
byte*)(
void*)
s; *ptr != 0; ptr++)
55 int num = (int)(ptr - (
byte*)(
void*)
s);
60 char* ptr2 = stackalloc
char[num];
static void FreeHGlobal(IntPtr hglobal)
static IntPtr AllocHGlobal(int cb)
static unsafe nfdresult_t INTERNAL_NFD_OpenDialogMultiple(byte *filterList, byte *defaultPath, out nfdpathset_t outPaths)
static unsafe nfdresult_t INTERNAL_NFD_PickFolder(byte *defaultPath, out IntPtr outPath)
static unsafe nfdresult_t NFD_OpenDialogMultiple(string filterList, string defaultPath, out nfdpathset_t outPaths)
static unsafe nfdresult_t INTERNAL_NFD_OpenDialog(byte *filterList, byte *defaultPath, out IntPtr outPath)
static IntPtr NFD_PathSet_GetCount(ref nfdpathset_t pathset)
const string nativeLibName
static unsafe nfdresult_t INTERNAL_NFD_SaveDialog(byte *filterList, byte *defaultPath, out IntPtr outPath)
static void free(IntPtr ptr)
static IntPtr INTERNAL_NFD_PathSet_GetPath(ref nfdpathset_t pathset, IntPtr index)
static void NFD_PathSet_Free(ref nfdpathset_t pathset)
static unsafe nfdresult_t NFD_PickFolder(string defaultPath, out string outPath)
static string NFD_PathSet_GetPath(ref nfdpathset_t pathset, IntPtr index)
static unsafe nfdresult_t NFD_SaveDialog(string filterList, string defaultPath, out string outPath)
static unsafe string UTF8_ToManaged(IntPtr s, bool freePtr=false)
static unsafe nfdresult_t NFD_OpenDialog(string filterList, string defaultPath, out string outPath)
static IntPtr INTERNAL_NFD_GetError()
static string NFD_GetError()
static unsafe byte * Utf8EncodeNullable(string str)
static int Utf8Size(string str)
static readonly IntPtr Zero