|
|
|
@ -35,7 +35,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components |
|
|
|
public Block8x8(Span<short> coefficients) |
|
|
|
{ |
|
|
|
ref byte selfRef = ref Unsafe.As<Block8x8, byte>(ref this); |
|
|
|
ref byte sourceRef = ref MemoryMarshal.GetReference(MemoryMarshal.Cast<short, byte>(coefficients)); |
|
|
|
ref byte sourceRef = ref Unsafe.As<short, byte>(ref MemoryMarshal.GetReference(coefficients)); |
|
|
|
Unsafe.CopyBlock(ref selfRef, ref sourceRef, Size * sizeof(short)); |
|
|
|
} |
|
|
|
|
|
|
|
|