예제 #1
0
        /// <summary>
        /// Close fileinfo resource
        /// </summary>
        public static bool finfo_close(finfo finfo)
        {
            if (finfo != null && finfo.IsValid)
            {
                finfo.Dispose();
            }

            return(true);
        }
 public finfoResource(finfo finfo)
     : base("file_info")
 {
     _finfo = finfo;
 }
예제 #3
0
 /// <summary>
 /// Set configuration options.
 /// </summary>
 public static bool finfo_set_flags(finfo finfo, int options) => finfo.set_flags(options);
예제 #4
0
 public static string finfo_file(finfo finfo, string file_name = null, int options = FILEINFO_NONE, PhpResource context = null)
 => finfo?.file(file_name, options, context);
예제 #5
0
 public static string finfo_buffer(finfo finfo, byte[] @string = null, int options = FILEINFO_NONE, PhpResource context = null)
 => finfo?.buffer(@string, options, context);