コード例 #1
0
ファイル: Interop.ReadDir.cs プロジェクト: noahfalk/corefx
 private static unsafe string GetDirectoryEntryName(InternalDirectoryEntry dirEnt)
 {
     if (dirEnt.NameLength == -1)
         return Marshal.PtrToStringAnsi(dirEnt.Name);
     else
         return Marshal.PtrToStringAnsi(dirEnt.Name, dirEnt.NameLength);
 }
コード例 #2
0
 private static unsafe string GetDirectoryEntryName(InternalDirectoryEntry dirEnt)
 {
     if (dirEnt.NameLength == -1)
     {
         return(Marshal.PtrToStringAnsi(dirEnt.Name));
     }
     else
     {
         return(Marshal.PtrToStringAnsi(dirEnt.Name, dirEnt.NameLength));
     }
 }
コード例 #3
0
 private static unsafe extern int ReadDirR(SafeDirectoryHandle dir, byte *buffer, int bufferSize, out InternalDirectoryEntry outputEntry);
コード例 #4
0
ファイル: Interop.ReadDir.cs プロジェクト: noahfalk/corefx
 private static unsafe extern int ReadDirR(SafeDirectoryHandle dir, byte* buffer, int bufferSize, out InternalDirectoryEntry outputEntry);
コード例 #5
0
 private static extern unsafe int ReadDirR(IntPtr dir, byte *buffer, int bufferSize, out InternalDirectoryEntry outputEntry);