Skip to content

Commit f38bd94

Browse files
committed
Document FastWrapOutputStream
1 parent 701154d commit f38bd94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/software/coley/llzip/util/FastWrapOutputStream.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
import java.io.ByteArrayOutputStream;
44

5+
/**
6+
* Byte output stream with {@link BufferData} wrapping provided, without the array-copy of {@link #toByteArray()}.
7+
*
8+
* @author xDark
9+
*/
510
public final class FastWrapOutputStream extends ByteArrayOutputStream {
11+
/**
12+
* @return Wrapper of the current buffer.
13+
*/
614
public BufferData wrap() {
715
return BufferData.wrap(buf, 0, count);
816
}

0 commit comments

Comments
 (0)