-
-
Notifications
You must be signed in to change notification settings - Fork 205
/
MeasurementUnit.Information.cs
89 lines (74 loc) · 2 KB
/
MeasurementUnit.Information.cs
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
namespace Sentry;
public readonly partial struct MeasurementUnit
{
/// <summary>
/// An information size unit
/// </summary>
/// <seealso href="https://getsentry.github.io/relay/relay_metrics/enum.InformationUnit.html"/>
public enum Information
{
/// <summary>
/// Bit unit (1/8 of byte)
/// </summary>
/// <remarks>
/// Some computer systems may have a different number of bits per byte.
/// </remarks>
Bit,
/// <summary>
/// Byte unit
/// </summary>
Byte,
/// <summary>
/// Kilobyte unit (10^3 bytes)
/// </summary>
Kilobyte,
/// <summary>
/// Kibibyte unit (2^10 bytes)
/// </summary>
Kibibyte,
/// <summary>
/// Megabyte unit (10^6 bytes)
/// </summary>
Megabyte,
/// <summary>
/// Mebibyte unit (2^20 bytes)
/// </summary>
Mebibyte,
/// <summary>
/// Gigabyte unit (10^9 bytes)
/// </summary>
Gigabyte,
/// <summary>
/// Gibibyte unit (2^30 bytes)
/// </summary>
Gibibyte,
/// <summary>
/// Terabyte unit (10^12 bytes)
/// </summary>
Terabyte,
/// <summary>
/// Tebibyte unit (2^40 bytes)
/// </summary>
Tebibyte,
/// <summary>
/// Petabyte unit (10^15 bytes)
/// </summary>
Petabyte,
/// <summary>
/// Pebibyte unit (2^50 bytes)
/// </summary>
Pebibyte,
/// <summary>
/// Exabyte unit (10^18 bytes)
/// </summary>
Exabyte,
/// <summary>
/// Exbibyte unit (2^60 bytes)
/// </summary>
Exbibyte
}
/// <summary>
/// Implicitly casts a <see cref="MeasurementUnit.Information"/> to a <see cref="MeasurementUnit"/>.
/// </summary>
public static implicit operator MeasurementUnit(Information unit) => new(unit);
}