File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/main/java/org/cryptomator/cryptofs Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 33import java .nio .ByteBuffer ;
44
55class ChunkData {
6-
7- public static ChunkData writtenChunkData (ByteBuffer bytes ) {
8- return new ChunkData (bytes , true );
9- }
10-
11- public static ChunkData readChunkData (ByteBuffer bytes ) {
12- return new ChunkData (bytes , false );
13- }
146
157 private final ByteBuffer bytes ;
168 private final boolean written ;
@@ -19,6 +11,14 @@ private ChunkData(ByteBuffer bytes, boolean written) {
1911 this .bytes = bytes ;
2012 this .written = written ;
2113 }
14+
15+ public static ChunkData writtenChunkData (ByteBuffer bytes ) {
16+ return new ChunkData (bytes , true );
17+ }
18+
19+ public static ChunkData readChunkData (ByteBuffer bytes ) {
20+ return new ChunkData (bytes , false );
21+ }
2222
2323 public ByteBuffer bytes () {
2424 return bytes ;
You can’t perform that action at this time.
0 commit comments