File tree 1 file changed +4
-4
lines changed
server/src/main/java/org/elasticsearch/common/lucene/store
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,22 +68,22 @@ public long length() {
68
68
69
69
@ Override
70
70
public byte readByte (long pos ) throws IOException {
71
- return bytes [offset + position (pos )];
71
+ return bytes [position (pos )];
72
72
}
73
73
74
74
@ Override
75
75
public short readShort (long pos ) throws IOException {
76
- return (short ) BitUtil .VH_LE_SHORT .get (bytes , offset + position (pos ));
76
+ return (short ) BitUtil .VH_LE_SHORT .get (bytes , position (pos ));
77
77
}
78
78
79
79
@ Override
80
80
public int readInt (long pos ) throws IOException {
81
- return (int ) BitUtil .VH_LE_INT .get (bytes , offset + position (pos ));
81
+ return (int ) BitUtil .VH_LE_INT .get (bytes , position (pos ));
82
82
}
83
83
84
84
@ Override
85
85
public long readLong (long pos ) throws IOException {
86
- return (long ) BitUtil .VH_LE_LONG .get (bytes , offset + position (pos ));
86
+ return (long ) BitUtil .VH_LE_LONG .get (bytes , position (pos ));
87
87
}
88
88
89
89
@ Override
You can’t perform that action at this time.
0 commit comments