|
|
@ -2,12 +2,9 @@ |
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
|
using System; |
|
|
using System; |
|
|
using System.Buffers; |
|
|
|
|
|
using System.IO; |
|
|
using System.IO; |
|
|
using System.Runtime.CompilerServices; |
|
|
using System.Runtime.CompilerServices; |
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder |
|
|
namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder |
|
|
{ |
|
|
{ |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
@ -54,9 +51,8 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Creates a new instance of the <see cref="Bytes"/>, and initializes it's buffer.
|
|
|
/// Creates a new instance of the <see cref="Bytes"/>, and initializes it's buffer.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="memoryManager">The <see cref="MemoryManager"/> to use for buffer allocations.</param>
|
|
|
|
|
|
/// <returns>The bytes created</returns>
|
|
|
/// <returns>The bytes created</returns>
|
|
|
public static Bytes Create(MemoryManager memoryManager) |
|
|
public static Bytes Create() |
|
|
{ |
|
|
{ |
|
|
// DO NOT bother with buffers and array pooling here!
|
|
|
// DO NOT bother with buffers and array pooling here!
|
|
|
// It only makes things worse!
|
|
|
// It only makes things worse!
|
|
|
|