diff --git a/src/ImageSharp/Formats/Tiff/Writers/TiffBaseColorWriter.cs b/src/ImageSharp/Formats/Tiff/Writers/TiffBaseColorWriter.cs index d16d8c321c..23b4e329df 100644 --- a/src/ImageSharp/Formats/Tiff/Writers/TiffBaseColorWriter.cs +++ b/src/ImageSharp/Formats/Tiff/Writers/TiffBaseColorWriter.cs @@ -22,7 +22,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers /// The memory allocator. /// The configuration. /// The entries collector. - 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; diff --git a/src/ImageSharp/Formats/Tiff/Writers/TiffStreamWriter.cs b/src/ImageSharp/Formats/Tiff/Writers/TiffStreamWriter.cs index 8de67d633d..5b971962a4 100644 --- a/src/ImageSharp/Formats/Tiff/Writers/TiffStreamWriter.cs +++ b/src/ImageSharp/Formats/Tiff/Writers/TiffStreamWriter.cs @@ -30,12 +30,11 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers /// public long Position => this.BaseStream.Position; + /// + /// Gets the base stream. + /// public Stream BaseStream { get; } - protected MemoryAllocator MemoryAllocator { get; } - - protected Configuration Configuration { get; } - /// /// Writes an empty four bytes to the stream, returning the offset to be written later. /// @@ -53,6 +52,10 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers /// The bytes to write. public void Write(byte[] value) => this.BaseStream.Write(value, 0, value.Length); + /// + /// Writes the specified value. + /// + /// The bytes to write. public void Write(ReadOnlySpan value) => this.BaseStream.Write(value); ///