Метод | Описание | |
---|---|---|
DirCacheTree ( ) : System | ||
DirCacheTree ( byte @in, |
||
contains ( byte a, int aOff, int aLen ) : bool | ||
getChild ( int i ) : |
Get the i-th child cache tree.
|
|
getChildCount ( ) : int |
Get the number of cached subtrees contained within this tree.
|
|
getEntrySpan ( ) : int |
Get the number of entries this tree spans within the DirCache.
|
|
getNameString ( ) : string |
Get the tree's name within its parent.
|
|
getObjectId ( ) : ObjectId | ||
getPathString ( ) : string |
Get the tree's path within the repository.
|
|
isValid ( ) : bool |
Determine if this cache is currently valid.
|
|
nameLength ( ) : int | ||
validate ( |
Update (if necessary) this tree's entrySpan.
|
|
write ( byte tmp, |
||
writeTree ( |
Write (if necessary) this tree to the object store.
|
Метод | Описание | |
---|---|---|
AppendName ( StringBuilder sb ) : void | ||
ComputeSize ( |
||
DirCacheTree ( |
||
InsertChild ( int stIdx, |
||
NameComparison ( byte a, int aPos, |
||
RemoveChild ( int stIdx ) : void | ||
Slash ( byte a, int aPos ) : int | ||
peq ( byte a, byte b, int aLen ) : bool |
public DirCacheTree ( byte @in, |
||
@in | byte | |
off | ||
myParent | ||
Результат | System |
public contains ( byte a, int aOff, int aLen ) : bool | ||
a | byte | |
aOff | int | |
aLen | int | |
Результат | bool |
public getChild ( int i ) : |
||
i | int | Index of the child to obtain. |
Результат |
public validate ( |
||
cache | the complete cache from DirCache. | |
cCnt | int |
/// Number of entries in cache that are valid for
/// iteration.
/// |
cIdx | int |
/// First position of cache that is a member of this
/// tree. The path of cache[cacheIdx].path for the
/// range [0,pathOff-1) matches the complete path of
/// this tree, from the root of the repository.
/// |
pathOff | int |
/// number of bytes of cache[cacheIdx].path that
/// matches this tree's path. The value at array position
/// cache[cacheIdx].path[pathOff-1] is always '/' if
/// pathOff is > 0.
/// |
Результат | void |
public write ( byte tmp, |
||
tmp | byte | |
os | ||
Результат | void |
public writeTree ( |
||
cacheEntry | the complete cache from DirCache. | |
cIdx | int |
/// first position of cache that is a member of this
/// tree. The path of cache[cacheIdx].path for the
/// range [0,pathOff-1) matches the complete path of
/// this tree, from the root of the repository. |
pathOffset | int |
/// number of bytes of cache[cacheIdx].path that
/// matches this tree's path. The value at array position
/// cache[cacheIdx].path[pathOff-1] is always '/' if
/// pathOff is > 0.
/// |
ow | ObjectWriter | /// the writer to use when serializing to the store. /// |
Результат | ObjectId |