| Modifier and Type | Class and Description |
|---|---|
| public static enum | BinaryHunk.
Type of information stored in a binary hunk. |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| pack-priv int | |
| private final FileHeader | |
| private int | length
Inflated length of the data. |
| private static final byte[] | |
| pack-priv final int | startOffset
Offset within |
| private BinaryHunk. | type
Type of the data meaning. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the byte array holding this hunk's patch script.Get the byte array holding this hunk's patch script. |
| public int | Returns: offset one past the end of the hunk ingetBuffer().Get offset one past the end of the hunk in |
| public FileHeader | Returns: header for the file this hunk applies to.Get header for the file this hunk applies to. |
| public int | |
| public int | Returns: offset the start of this hunk ingetBuffer().Get offset the start of this hunk in |
| public BinaryHunk. | |
| pack-priv int |
| DELTA | back to summary |
|---|---|
| private static final byte[] DELTA | |
| endOffset | back to summary |
|---|---|
| pack-priv int endOffset Position 1 past the end of this hunk within | |
| file | back to summary |
|---|---|
| private final FileHeader file | |
| length | back to summary |
|---|---|
| private int length Inflated length of the data. | |
| LITERAL | back to summary |
|---|---|
| private static final byte[] LITERAL | |
| startOffset | back to summary |
|---|---|
| pack-priv final int startOffset Offset within | |
| type | back to summary |
|---|---|
| private BinaryHunk. Type of the data meaning. | |
| BinaryHunk | back to summary |
|---|---|
| pack-priv BinaryHunk(FileHeader fh, int offset) | |
| getBuffer | back to summary |
|---|---|
| public byte[] getBuffer() Get the byte array holding this hunk's patch script.
| |
| getEndOffset | back to summary |
|---|---|
| public int getEndOffset() Get offset one past the end of the hunk in
| |
| getFileHeader | back to summary |
|---|---|
| public FileHeader getFileHeader() Get header for the file this hunk applies to.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Get inflated size of this hunk's data.
| |
| getStartOffset | back to summary |
|---|---|
| public int getStartOffset() Get offset the start of this hunk in
| |
| getType | back to summary |
|---|---|
| public BinaryHunk. Get type of this binary hunk.
| |
| parseHunk | back to summary |
|---|---|
| pack-priv int parseHunk(int ptr, int end) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final BinaryHunk. | DELTA_DEFLATED
A Git pack-style delta is stored, deflated. |
| public static final BinaryHunk. | LITERAL_DEFLATED
The full content is stored, deflated. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BinaryHunk. | |
| public static BinaryHunk. |
| DELTA_DEFLATED | back to summary |
|---|---|
| public static final BinaryHunk. A Git pack-style delta is stored, deflated. | |
| LITERAL_DEFLATED | back to summary |
|---|---|
| public static final BinaryHunk. The full content is stored, deflated. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static BinaryHunk. | |
| values | back to summary |
|---|---|
| public static BinaryHunk. | |