Serializable, Comparable<AnyObjectId>ObjectToPackpublic class PackedObjectInfo extends ObjectIdOwnerMap.Entry
When objects are stored in packs Git needs the ObjectId and the offset (starting position of the object data) to perform random-access reads of objects from the pack. This extension of ObjectId includes the offset.
| Constructor | Description |
|---|---|
PackedObjectInfo(AnyObjectId id) |
Create a new structure to remember information about an object.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getCRC() |
|
long |
getOffset() |
|
void |
setCRC(int crc) |
Record the 32 bit CRC checksum for the packed data.
|
void |
setOffset(long offset) |
Set the offset in pack when object has been written to.
|
abbreviate, compareTo, compareTo, compareTo, copy, copyRawTo, copyRawTo, copyRawTo, copyRawTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, equals, equals, equals, getByte, getFirstByte, getName, hashCode, name, startsWith, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroIdpublic PackedObjectInfo(AnyObjectId id)
id - the identity of the object the new instance tracks.public long getOffset()
public void setOffset(long offset)
offset - offset where written object startspublic int getCRC()
public void setCRC(int crc)
crc - checksum of all packed data (including object type code,
inflated length and delta base reference) as computed by
CRC32.Copyright © 2018. All rights reserved.