Skip to content

Commit

Permalink
Allow public access to data and size in Buffer. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
melmerp authored and eustas committed Nov 9, 2016
1 parent d4071e7 commit 88b1e13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/ru/eustas/zopfli/Buffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 88b1e13

Please sign in to comment.