~ruther/NosSmooth

ref: 01ab7fbbe37bfbc731de188df6b711176ce2f2bb NosSmooth/Data/NosSmooth.Data.NOSFiles/Files/RawFile.cs -rw-r--r-- 878 bytes
01ab7fbb — František Boháček feat: add helper data records 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
//  RawFile.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Diagnostics.CodeAnalysis;
using System.Net.Mime;
using System.Security.Cryptography;

namespace NosSmooth.Data.NOSFiles.Files;

/// <summary>
/// A file.
/// </summary>
/// <param name="FileType">The type of the file, if known.</param>
/// <param name="Path">The path to the file.</param>
/// <param name="Length">The length of the content.</param>
/// <param name="Content">The binary content of the file.</param>
[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1313:Parameter names should begin with lower-case letter", Justification = "Upper case is standard.")]
public record struct RawFile
(
    FileType? FileType,
    string Path,
    long Length,
    byte[] Content
);