keep the original byte for self-define header
This commit is contained in:
parent
e09c9b57b9
commit
14fc2c5de3
|
|
@ -15,6 +15,7 @@ public class Header {
|
|||
public final int createdAt;
|
||||
public final int startIndexPtr;
|
||||
public final int endIndexPtr;
|
||||
public final byte[] buffer;
|
||||
|
||||
public Header(byte[] buff) {
|
||||
assert buff.length >= 16;
|
||||
|
|
@ -23,6 +24,7 @@ public class Header {
|
|||
createdAt = Searcher.getInt(buff, 4);
|
||||
startIndexPtr = Searcher.getInt(buff, 8);
|
||||
endIndexPtr = Searcher.getInt(buff, 12);
|
||||
buffer = buff;
|
||||
}
|
||||
|
||||
@Override public String toString() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue