From 88b1e1306381585ea79fbb404a1d2130c5eee413 Mon Sep 17 00:00:00 2001 From: "Mark E. Pascual" Date: Wed, 9 Nov 2016 03:25:52 -0800 Subject: [PATCH] Allow public access to data and size in Buffer. (#3) --- src/main/java/ru/eustas/zopfli/Buffer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/ru/eustas/zopfli/Buffer.java b/src/main/java/ru/eustas/zopfli/Buffer.java index af2c865..9992922 100644 --- a/src/main/java/ru/eustas/zopfli/Buffer.java +++ b/src/main/java/ru/eustas/zopfli/Buffer.java @@ -28,6 +28,14 @@ public class Buffer { data = new byte[65536]; } + public byte[] getData() { + return data; + } + + public int getSize() { + return size; + } + void append(byte value) { if (size == data.length) { byte[] copy = new byte[size * 2];