File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
src/ImageSharp/Formats/Jpeg/Components Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,14 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components;
15
15
/// 8x8 matrix of <see cref="short"/> coefficients.
16
16
/// </summary>
17
17
// ReSharper disable once InconsistentNaming
18
- [ StructLayout ( LayoutKind . Explicit ) ]
19
- internal unsafe partial struct Block8x8
18
+ [ StructLayout ( LayoutKind . Explicit , Size = 2 * Size ) ]
19
+ internal partial struct Block8x8
20
20
{
21
21
/// <summary>
22
22
/// A number of scalar coefficients in a <see cref="Block8x8F"/>
23
23
/// </summary>
24
24
public const int Size = 64 ;
25
25
26
- #pragma warning disable IDE0051 // Remove unused private member
27
- /// <summary>
28
- /// A placeholder buffer so the actual struct occupies exactly 64 * 2 bytes.
29
- /// </summary>
30
- /// <remarks>
31
- /// This is not used directly in the code.
32
- /// </remarks>
33
- [ FieldOffset ( 0 ) ]
34
- private fixed short data [ Size ] ;
35
- #pragma warning restore IDE0051
36
-
37
26
/// <summary>
38
27
/// Gets or sets a <see cref="short"/> value at the given index
39
28
/// </summary>
You can’t perform that action at this time.
0 commit comments