MCPcopy Index your code
hub / github.com/dumbledore/AlbiteREADER / seek

Method seek

src/gnu/zip/ZipFile.java:636–649  ·  view source on GitHub ↗
(long newpos)

Source from the content-addressed store, hash-verified

634 }
635
636 void seek(long newpos) throws IOException
637 {
638 long offset = newpos - bufferOffset;
639 if (offset >= 0 && offset <= buffer.length)
640 {
641 pos = (int) offset;
642 }
643 else
644 {
645 bufferOffset = newpos;
646 pos = 0;
647 fillBuffer();
648 }
649 }
650
651 void readFully(byte[] buf) throws IOException
652 {

Callers 4

readEntriesMethod · 0.95
getInputStreamMethod · 0.95
skipMethod · 0.95
fillBufferMethod · 0.45

Calls 1

fillBufferMethod · 0.95

Tested by

no test coverage detected