From 231f19b13d9989b2965332f859ed0609b661d898 Mon Sep 17 00:00:00 2001 From: Steve Temple Date: Sat, 25 Jul 2020 23:22:47 +0100 Subject: [PATCH] Move public method above privates in Vp8LBitWriter --- .../Formats/WebP/BitWriter/Vp8LBitWriter.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ImageSharp/Formats/WebP/BitWriter/Vp8LBitWriter.cs b/src/ImageSharp/Formats/WebP/BitWriter/Vp8LBitWriter.cs index 7428c8bcce..a3e35448be 100644 --- a/src/ImageSharp/Formats/WebP/BitWriter/Vp8LBitWriter.cs +++ b/src/ImageSharp/Formats/WebP/BitWriter/Vp8LBitWriter.cs @@ -100,6 +100,13 @@ namespace SixLabors.ImageSharp.Formats.WebP.BitWriter return this.cur + ((this.used + 7) >> 3); } + public Vp8LBitWriter Clone() + { + byte[] clonedBuffer = new byte[this.buffer.Length]; + Buffer.BlockCopy(this.buffer, 0, clonedBuffer, 0, this.cur); + return new Vp8LBitWriter(clonedBuffer, this.bits, this.used, this.cur); + } + /// /// Internal function for PutBits flushing 32 bits from the written state. /// @@ -143,12 +150,5 @@ namespace SixLabors.ImageSharp.Formats.WebP.BitWriter this.end = this.buffer.Length; } - - public Vp8LBitWriter Clone() - { - byte[] clonedBuffer = new byte[this.buffer.Length]; - Buffer.BlockCopy(this.buffer, 0, clonedBuffer, 0, this.cur); - return new Vp8LBitWriter(clonedBuffer, this.bits, this.used, this.cur); - } } }