~ruther/NosSmooth

ref: df935e1e2009a82faceb34d724356203459ef4ae NosSmooth/Data/NosSmooth.Data.NOSFiles/Files/RawFile.cs -rw-r--r-- 878 bytes
df935e1e — Rutherther fix(crypto): export session number correctly from encryption key 2 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
);
Do not follow this link