public static bool TryGet(this FixedSizeNode <SnapUInt32, SnapUInt32> tree, uint key, out uint value) { SnapUInt32 k = new SnapUInt32(key); SnapUInt32 v = new SnapUInt32(); bool rv = tree.TryGet(k, v); value = v.Value; return(rv); }
public static uint Get(this FixedSizeNode <SnapUInt32, SnapUInt32> tree, uint key) { SnapUInt32 k = new SnapUInt32(key); SnapUInt32 v = new SnapUInt32(); if (!tree.TryGet(k, v)) { throw new Exception(); } return(v.Value); }