Show More
@@ -42,10 +42,15 b' def offset_type(offset, type):' | |||
|
42 | 42 | |
|
43 | 43 | |
|
44 | 44 | class BaseIndexObject(object): |
|
45 | # Format of an index entry according to Python's `struct` language | |
|
45 | 46 | index_format = b">Qiiiiii20s12x" |
|
46 | big_int_size = struct.calcsize(b'Q') | |
|
47 |
int_size = struct.calcsize(b' |
|
|
47 | # Size of a C unsigned long long int, platform independent | |
|
48 | big_int_size = struct.calcsize(b'>Q') | |
|
49 | # Size of a C long int, platform independent | |
|
50 | int_size = struct.calcsize(b'>i') | |
|
51 | # Size of the entire index format | |
|
48 | 52 | index_size = struct.calcsize(index_format) |
|
53 | # An empty index entry, used as a default value to be overridden, or nullrev | |
|
49 | 54 | null_item = (0, 0, 0, -1, -1, -1, -1, nullid) |
|
50 | 55 | |
|
51 | 56 | @property |
General Comments 0
You need to be logged in to leave comments.
Login now