コード例 #1
0
        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);
コード例 #2
0
 public bool TryGetValue(ref RomEntryKey key, out RomKeyValuePair <T> value)
 {
     return(TryGetValue(GetOffsetFromKey(ref key), out value));
 }