Browse Source

Use stackalloc

pull/1734/head
James Jackson-South 5 years ago
parent
commit
39eba0d82c
  1. 2
      src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

2
src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

@ -265,7 +265,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
private void WriteDefineHuffmanTables(int componentCount) private void WriteDefineHuffmanTables(int componentCount)
{ {
// Table identifiers. // Table identifiers.
ReadOnlySpan<byte> headers = new byte[] ReadOnlySpan<byte> headers = stackalloc byte[]
{ {
0x00, 0x00,
0x10, 0x10,

Loading…
Cancel
Save