keep the original byte for self-define header

This commit is contained in:
Lion 2022-07-02 18:15:54 +08:00
parent e09c9b57b9
commit 14fc2c5de3
1 changed files with 2 additions and 0 deletions

View File

@ -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() {