protected static SimulatorCache ( Brunet.Address a ) : Brunet.Address | ||
a | Brunet.Address | |
return | Brunet.Address |
protected static Address SimulatorCache(Address a) {
int idx = NumberSerializer.ReadInt(a.ToMemBlock(), 0);
Address tmp = _cache.GetValue(idx);
if(a.Equals(tmp)) {
return tmp;
}
_cache.Replace(idx, a);
return a;
}
#else