1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Switch param to StringView

This commit is contained in:
Brian Fiete 2024-08-25 09:26:33 -04:00
parent 29b2299dc2
commit 3491793f7a

View file

@ -73,11 +73,11 @@ namespace System.IO
protected const int32 MaxPath = 260; protected const int32 MaxPath = 260;
private const int32 MaxDirectoryLength = 255; private const int32 MaxDirectoryLength = 255;
public static void GetFullPath(String inPartialPath, String outFullPath) public static void GetFullPath(StringView inPartialPath, String outFullPath)
{ {
Platform.GetStrHelper(outFullPath, scope (outPtr, outSize, outResult) => Platform.GetStrHelper(outFullPath, scope (outPtr, outSize, outResult) =>
{ {
Platform.BfpFile_GetFullPath(inPartialPath, outPtr, outSize, (Platform.BfpFileResult*)outResult); Platform.BfpFile_GetFullPath(inPartialPath.ToScopeCStr!(), outPtr, outSize, (Platform.BfpFileResult*)outResult);
}); });
} }