Skip to content

Commit 88b1e13

Browse files
melmerpeustas
authored andcommitted
Allow public access to data and size in Buffer. (#3)
1 parent d4071e7 commit 88b1e13

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/ru/eustas/zopfli/Buffer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ public class Buffer {
2828
data = new byte[65536];
2929
}
3030

31+
public byte[] getData() {
32+
return data;
33+
}
34+
35+
public int getSize() {
36+
return size;
37+
}
38+
3139
void append(byte value) {
3240
if (size == data.length) {
3341
byte[] copy = new byte[size * 2];

0 commit comments

Comments
 (0)