// Copyright 2025 The Ip2Region Authors. All rights reserved. // Use of this source code is governed by a Apache2.0-style // license that can be found in the LICENSE file. // @Author Alan // @Date 2023/07/25 // Updated by Argo Zhang at 2025/11/21 using System.Net; namespace IP2Region.Net.Abstractions; /// /// IP 转化为地理位置搜索器接口 /// public interface ISearcher : IDisposable { /// /// 搜索方法 /// /// IP 地址字符串 如 192.168.0.1 /// string? Search(string ipStr); /// /// 搜索方法 /// string? Search(IPAddress ipAddress); /// /// 搜索方法 仅限 IPv4 使用 /// /// IPv4 地址字节数组小端读取 uint 数值 [Obsolete("已弃用,请改用其他方法;Deprecated; please use Search(string) or Search(IPAddress) method.")] string? Search(uint ipAddress); /// /// 获得 内部 IO 访问次数 /// int IoCount { get; } }