private bool AddLabel(HashArray a, FacetLabel label, int hash, int ordinal)
{
int index = CompactLabelToOrdinal.IndexFor(hash, a.offsets.Length);
int offset = a.offsets[index];
if (offset == 0)
{
a.offsets[index] = this.labelRepository.Length;
CategoryPathUtils.Serialize(label, labelRepository);
a.cids[index] = ordinal;
return true;
}
return false;
}