private static extern void CloseMemoryWindows(FIMEMORY stream);
private static extern bool SaveToMemoryWindows(FREE_IMAGE_FORMAT fif, FIBITMAP dib, FIMEMORY stream, FREE_IMAGE_SAVE_FLAGS flags);
public static extern FREE_IMAGE_FORMAT GetFileTypeFromMemory(FIMEMORY stream, int size);
private static extern FREE_IMAGE_FORMAT GetFileTypeFromMemoryWindows(FIMEMORY stream, int size);
private static extern FIMULTIBITMAP LoadMultiBitmapFromMemoryWindows(FREE_IMAGE_FORMAT fif, FIMEMORY stream, FREE_IMAGE_LOAD_FLAGS flags);
private static extern int TellMemoryMacOS(FIMEMORY stream);
public static extern bool SaveToMemory(FREE_IMAGE_FORMAT fif, FIBITMAP dib, FIMEMORY stream, int flags);
private static extern bool AcquireMemoryWindows(FIMEMORY stream, ref IntPtr data, ref uint size_in_bytes);
private static extern uint ReadMemoryLinux(byte[] buffer, uint size, uint count, FIMEMORY stream);
public static extern FIBITMAP LoadFromMemory(FREE_IMAGE_FORMAT fif, FIMEMORY stream, int flags);
private static extern int TellMemoryLinux(FIMEMORY stream);
private static extern FIBITMAP LoadFromMemoryLinux(FREE_IMAGE_FORMAT fif, FIMEMORY stream, FREE_IMAGE_LOAD_FLAGS flags);
private static extern void CloseMemoryLinux(FIMEMORY stream);
private static extern int TellMemoryWindows(FIMEMORY stream);
public static extern long TellMemory(FIMEMORY stream, int flags);
private static extern bool SeekMemoryWindows(FIMEMORY stream, int offset, System.IO.SeekOrigin origin);
public static extern bool SeekMemory(FIMEMORY stream, long offset, int origin);
private static extern uint WriteMemoryWindows(byte[] buffer, uint size, uint count, FIMEMORY stream);
public static extern long AcquireMemory(FIMEMORY stream, ref IntPtr data, ref int size_in_bytes);
public static extern void CloseMemory(FIMEMORY stream);
private static extern void CloseMemoryMacOS(FIMEMORY stream);