Skip to content

Commit 39eba0d

Browse files
Use stackalloc
1 parent 9e6fbdb commit 39eba0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ private void WriteJfifApplicationHeader(ImageMetadata meta)
265265
private void WriteDefineHuffmanTables(int componentCount)
266266
{
267267
// Table identifiers.
268-
ReadOnlySpan<byte> headers = new byte[]
268+
ReadOnlySpan<byte> headers = stackalloc byte[]
269269
{
270270
0x00,
271271
0x10,

0 commit comments

Comments
 (0)