public bool TryGetValue(int offset, out RomKeyValuePair <T> value) { if (offset < 0 || offset + _sizeOfEntry > Entries.Length) { value = default; return(false); } value = new RomKeyValuePair <T>(); ref RomFsEntry entry = ref GetEntryReference(offset, out Span <byte> name);
public bool TryGetValue(ref RomEntryKey key, out RomKeyValuePair <T> value) { return(TryGetValue(GetOffsetFromKey(ref key), out value)); }