Skip to content
Snippets Groups Projects
Commit b61f30e8 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

Read data

parent 31c3f6a9
No related merge requests found
Pipeline #104 failed with stages
in 0 seconds
......@@ -80,13 +80,17 @@ public class IndexReader {
bb.flip();
int positionOfData = bb.getInt();
int legthOfData = bb.getInt();
bb = ByteBuffer.allocate(legthOfData);
fc.position(positionOfData);
while (bb.hasRemaining()) {
fc.read(bb);
}
// position_of_data := readInt(position_in_index)
// length_of_data := readInt(position_in_index + 4)
// data := readData(position_of_data, length_of_data)
// return data
// bb.array()
return new byte[0];
bb.flip();
return bb.array();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment