Git.framework Reference Library

GITPackIndexWriterObject Class Reference

GITPackIndexWriterObject Class Reference

Declared in GITPackIndexWriterObject.h

Overview

GITPackIndexWriterObject is a class which encapsulates the data required for writing entries into a PACK index file prior to writing the PACK file.

Tasks

Properties

sha1

Object hash of the object to store in the index.

@property GITObjectHash *sha1
Declared In
GITPackIndexWriterObject.h

offset

Offset into the PACK file to find the object.

@property NSUInteger offset
Declared In
GITPackIndexWriterObject.h

crc32

CRC32 of the data of the object.

@property uint32_t crc32
Declared In
GITPackIndexWriterObject.h

Class Methods

indexWriterObjectWithName:atOffset:

+ (GITPackIndexWriterObject *)indexWriterObjectWithName:(GITObjectHash *)sha1 atOffset:(NSUInteger)offset
Parameters
sha1

Object hash name of the object

offset

Offset of the object into the PACK file

Return Value

index writer object

Discussion

Create an autoreleased index writer object with the specified sha1 and offset.

Declared In
GITPackIndexWriterObject.h

Instance Methods

initWithName:atOffset:

- (id)initWithName:(GITObjectHash *)sha1 atOffset:(NSUInteger)offset
Parameters
sha1

Object hash name of the object

offset

Offset of the object into the PACK file

Return Value

index writer object

Discussion

Initialises an index writer with the specified sha1 and offset.

Declared In
GITPackIndexWriterObject.h

isEqual:

- (BOOL)isEqual:(id)other
Parameters
other

The object to be compared to the receiver

Return Value

YES if the receiver and other are equal, otherwise NO

Discussion

Returns a Boolean value that indicates whether the receiver and a given object are equal.

See Also
Declared In
GITPackIndexWriterObject.h

isEqualToIndexWriterObject:

- (BOOL)isEqualToIndexWriterObject:(GITPackIndexWriterObject *)rhs
Parameters
rhs

The index writer with which to compare the receiver

Return Value

YES if the receiver and rhs are equal, otherwise NO

Discussion

Returns a Boolean value that indicates whether the receiver and a given index write are equal.

See Also
Declared In
GITPackIndexWriterObject.h

isEqualToObjectHash:

- (BOOL)isEqualToObjectHash:(GITObjectHash *)rhs
Parameters
rhs

The ObjectHash with which to compare the receiver

Return Value

YES if the receiver and rhs are equal, otherwise NO

Discussion

Returns a Boolean value that indicates whether the receiver and a given ObjectHash refer to the same objects.

See Also
Declared In
GITPackIndexWriterObject.h

compare:

- (NSComparisonResult)compare:(GITPackIndexWriterObject *)obj
Parameters
obj

The index writer object with which to compare the receiver. This value must not be nil. If the value is nil, the behavior is undefined.

Return Value

NSOrderedAscending if the value of obj is greater than the receiver’s, NSOrderedSame if they’re equal, and NSOrderedDescending if the value of obj is less than the receiver’s.

Discussion

Returns an NSComparisonResult value that indicates whether the receiver is greater than, equal to, or less than a given index writer object.

Declared In
GITPackIndexWriterObject.h

Last updated: 2011-2-20