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="memoryAllocator">The memory allocator.</param>
/// <param name="configuration">The configuration.</param> /// <param name="configuration">The configuration.</param>
/// <param name="entriesCollector">The entries collector.</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.Output = output;
this.MemoryAllocator = memoryAllocator; this.MemoryAllocator = memoryAllocator;

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

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

Loading…
Cancel
Save