Search Results for

Show / Hide Table of Contents

# Namespace FexViewer

### Classes

#### FexApi

Managed-friendly wrappers around the raw FexViewer.NativeMethods P/Invoke surface. Each method handles UTF-8 marshalling, buffer cleanup, and translates non-zero result codes into FexCoreException.

#### FexCoreException

Exception thrown by FexApi wrappers when the DLL returns a non-OK result code. The numeric code is preserved on ErrorCode so callers can branch on it (e.g. to distinguish password-related failures from fatal errors).

#### FileRecord

Managed counterpart of FexViewer.FileRecordNative. Created by FexViewer.FileRecord.FromNative(FexViewer.FileRecordNative) after the DLL buffer has been read; safe to keep alive after the native allocation is freed.

#### ImageMetadata

Strongly-typed view over the JSON returned by GetImageInfoByFilenameAsJSON(string, out nint, out uint) / GetImageInfoByIdAsJSON(int, out nint, out uint). JSON property names follow the camelCase convention introduced 2026-05-03.