| Modifier and Type | Field and Description |
|---|---|
| private final DfsObjDatabase | |
| private final int | |
| private final long | |
| private final DfsPackFile | |
| private final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | LargePackedWholeObject(int type, long size, long objectOffset, int headerLength, DfsPackFile pack, DfsObjDatabase db)
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | getCachedBytes()
Implements abstract org. Obtain a reference to the (possibly cached) bytes of this object. |
| public long | |
| public int | |
| public boolean | isLarge()
Overrides org. Whether this object is too large to obtain as a byte array. |
| public ObjectStream | openStream()
Implements abstract org. Obtain an input stream to read this object's data. |
| db | back to summary |
|---|---|
| private final DfsObjDatabase db | |
| headerLength | back to summary |
|---|---|
| private final int headerLength | |
| objectOffset | back to summary |
|---|---|
| private final long objectOffset | |
| pack | back to summary |
|---|---|
| private final DfsPackFile pack | |
| size | back to summary |
|---|---|
| private final long size | |
| type | back to summary |
|---|---|
| private final int type | |
| LargePackedWholeObject | back to summary |
|---|---|
| pack-priv LargePackedWholeObject(int type, long size, long objectOffset, int headerLength, DfsPackFile pack, DfsObjDatabase db) | |
| getCachedBytes | back to summary |
|---|---|
| public byte[] getCachedBytes() throws LargeObjectException Implements abstract org. Doc from org. Obtain a reference to the (possibly cached) bytes of this object. This method offers direct access to the internal caches, potentially saving on data copies between the internal cache and higher level code. Callers who receive this reference must not modify its contents. Changes (if made) will affect the cache but not the repository itself.
| |
| getSize | back to summary |
|---|---|
| public long getSize() Implements abstract org. Doc from org. Get size of object in bytes
| |
| getType | back to summary |
|---|---|
| public int getType() Implements abstract org. Doc from org. Get Git in pack object type
| |
| isLarge | back to summary |
|---|---|
| public boolean isLarge() Overrides org. Doc from org. Whether this object is too large to obtain as a byte array.
| |
| openStream | back to summary |
|---|---|
| public ObjectStream openStream() throws MissingObjectException, IOException Implements abstract org. Doc from org. Obtain an input stream to read this object's data.
| |