| Declared in | GITObjectHash.h |
|---|
The class provides methods for packing and unpacking SHA1 hashes in both NSString and GITObjectHashNSData forms. objects provide GITObjectHash
+ (GITObjectHash *)objectHashWithData:(NSData *)hashData NSData containing a packed or unpacked SHA1
object hash with the NSData object
Creates an autoreleased object hash with an NSData containing a packed or unpacked SHA1.
GITObjectHash.h+ (GITObjectHash *)objectHashWithString:(NSString *)hashString String containing a packed or unpacked SHA1
object hash with the string
Returns an object hash with a string containing a packed or unpacked SHA1.
GITObjectHash.h+ (GITObjectHash *)objectHashWithObjectData:(NSData *)objectData Object data to create GITObjectHash of
object hash of the data object
Returns an object hash from the SHA1 Hash of the provided data object.
GITObjectHash.h+ (NSString *)unpackedStringFromData:(NSData *)data Data containing the packed SHA1
NSString containing the unpacked SHA1
Returns a string containing the unpacked SHA1 of the packed data.
GITObjectHash.h+ (NSString *)packedStringFromData:(NSData *)data NSData containing the unpacked SHA1
NSString containing the packed SHA1
Returns a string containing the packed SHA1 of the unpacked data.
GITObjectHash.h+ (NSData *)unpackedDataFromString:(NSString *)str String containing the packed SHA1
NSData containing the unpacked SHA1
Returns data containing the unpacked SHA1 of the packed string.
GITObjectHash.h+ (NSData *)packedDataFromString:(NSString *)str String containing the unpacked SHA1
NSData containing the packed SHA1
Returns data containing the packed SHA1 of the unpacked string.
GITObjectHash.h+ (NSData *)unpackedDataFromData:(NSData *)data NSData object containing packed SHA1
NSData object containing unpacked SHA1
Returns an NSData object containing the unpacked SHA1 of the packed data.
GITObjectHash.h+ (NSData *)packedDataFromData:(NSData *)data NSData object containing unpacked SHA1
NSData object containing packed SHA1
Returns an NSData object containing the packed SHA1 of the unpacked data.
GITObjectHash.h+ (NSData *)unpackedDataFromBytes:(uint8_t *)bytes length:(NSUInteger)length Byte array containing the packed SHA1
Size of the byte array
NSData object containing unpacked SHA1
Returns an NSData object containing the unpacked SHA1 of the packed bytes.
GITObjectHash.h+ (NSData *)packedDataFromBytes:(uint8_t *)bytes length:(NSUInteger)length Byte array containing the unpacked SHA1
Size of the byte array
NSData object containing packed SHA1
Returns an NSData object containing the packed SHA1 of the unpacked bytes.
GITObjectHash.h- (id)initWithString:(NSString *)str String containing a packed or unpacked SHA1
object hash with the string
Returns an object hash with a string containing a packed or unpacked SHA1.
GITObjectHash.h- (id)initWithData:(NSData *)data NSData containing a packed or unpacked SHA1
object hash with the NSData object
Returns an object hash with an NSData containing a packed or unpacked SHA1.
GITObjectHash.h- (id)initWithObjectData:(NSData *)objectData Object data to create GITObjectHash of
object hash of the data object
Returns an object hash from the SHA1 Hash of the provided data object.
GITObjectHash.h- (NSString *)unpackedStringunpacked string of the object hash
Returns the unpacked string of the object hash.
GITObjectHash.h- (NSData *)unpackedDataunpacked data of the object hash
Returns the unpacked data of the object hash.
GITObjectHash.h- (NSData *)packedDatapacked data of the object hash
Returns the packed data of the object hash.
GITObjectHash.h- (BOOL)isEqual:(id)other The object to be compared to the receiver
YES if the receiver and other are equal, otherwise NO
Returns a Boolean value that indicates whether the receiver and a given object are equal.
GITObjectHash.h- (BOOL)isEqualToData:(NSData *)data The data object with which to compare the receiver
YES if the receiver and data are equal, otherwise NO
Returns a Boolean value that indicates whether the receiver and a given data object are equal.
GITObjectHash.h- (BOOL)isEqualToString:(NSString *)str The string with which to compare the receiver
YES if the receiver and str are equal, otherwise NO
Returns a Boolean value that indicates whether the receiver and a given string are equal.
GITObjectHash.h- (BOOL)isEqualToObjectHash:(GITObjectHash *)hash The ObjectHash with which to compare the receiver
YES if the receiver and hash are equal, otherwise NO
Returns a Boolean value that indicates whether the receiver and a given ObjectHash are equal.
GITObjectHash.h- (NSComparisonResult)compare:(GITObjectHash *)hash The object hash with which to compare the receiver. This value must not be nil. If the value is nil, the behavior is undefined.
NSOrderedAscending if the value of hash is greater than the receiver’s, NSOrderedSame if they’re equal, and NSOrderedDescending if the value of hash is less than the receiver’s.
Returns an NSComparisonResult value that indicates whether the receiver is greater than, equal to, or less than a given object hash.
GITObjectHash.hLast updated: 2011-2-20