Beispiel #1
0
 public static uint Read(FileStream fileStream, Span <byte> buffer, ulong fileOffset)
 {
     if (_windows)
     {
         return(ResultWindows(Windows.PRead(fileStream, buffer, fileOffset)));
     }
     else if (_linux)
     {
         return(ResultUnix(Unix.PRead(fileStream, buffer, fileOffset)));
     }
     else
     {
         ThrowHelper();
         return(0);