Browse Source

Cleanup

pull/1570/head
Ildar Khayrutdinov 5 years ago
parent
commit
8d01c602d2
  1. 2
      src/ImageSharp/Formats/Tiff/Writers/TiffBaseColorWriter.cs
  2. 11
      src/ImageSharp/Formats/Tiff/Writers/TiffStreamWriter.cs

2
src/ImageSharp/Formats/Tiff/Writers/TiffBaseColorWriter.cs

@ -22,7 +22,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
/// <param name="memoryAllocator">The memory allocator.</param>
/// <param name="configuration">The configuration.</param>
/// <param name="entriesCollector">The entries collector.</param>
public TiffBaseColorWriter(TiffStreamWriter output, MemoryAllocator memoryAllocator, Configuration configuration, TiffEncoderEntriesCollector entriesCollector)
protected TiffBaseColorWriter(TiffStreamWriter output, MemoryAllocator memoryAllocator, Configuration configuration, TiffEncoderEntriesCollector entriesCollector)
{
this.Output = output;
this.MemoryAllocator = memoryAllocator;

11
src/ImageSharp/Formats/Tiff/Writers/TiffStreamWriter.cs

@ -30,12 +30,11 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
/// </summary>
public long Position => this.BaseStream.Position;
/// <summary>
/// Gets the base stream.
/// </summary>
public Stream BaseStream { get; }
protected MemoryAllocator MemoryAllocator { get; }
protected Configuration Configuration { get; }
/// <summary>
/// Writes an empty four bytes to the stream, returning the offset to be written later.
/// </summary>
@ -53,6 +52,10 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
/// <param name="value">The bytes to write.</param>
public void Write(byte[] value) => this.BaseStream.Write(value, 0, value.Length);
/// <summary>
/// Writes the specified value.
/// </summary>
/// <param name="value">The bytes to write.</param>
public void Write(ReadOnlySpan<byte> value) => this.BaseStream.Write(value);
/// <summary>

Loading…
Cancel
Save