mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
src: dotnet: FileSystem: convert Set* methods to properties
This commit is contained in:
@ -61,6 +61,11 @@ namespace Fsp.Interop
|
||||
internal unsafe fixed UInt16 Prefix[PrefixSize];
|
||||
internal unsafe fixed UInt16 FileSystemName[FileSystemNameSize];
|
||||
|
||||
internal unsafe String GetPrefix()
|
||||
{
|
||||
fixed (UInt16 *P = Prefix)
|
||||
return Marshal.PtrToStringUni((IntPtr)P);
|
||||
}
|
||||
internal unsafe void SetPrefix(String Value)
|
||||
{
|
||||
fixed (UInt16 *P = Prefix)
|
||||
@ -73,6 +78,11 @@ namespace Fsp.Interop
|
||||
P[Size] = 0;
|
||||
}
|
||||
}
|
||||
internal unsafe String GetFileSystemName()
|
||||
{
|
||||
fixed (UInt16 *P = FileSystemName)
|
||||
return Marshal.PtrToStringUni((IntPtr)P);
|
||||
}
|
||||
internal unsafe void SetFileSystemName(String Value)
|
||||
{
|
||||
fixed (UInt16 *P = FileSystemName)
|
||||
|
Reference in New Issue
Block a user