libragephoto: add ragephoto .NET Package

This commit is contained in:
Syping 2025-10-07 12:29:53 +02:00
parent 3b8b641465
commit f492fc9b93
7 changed files with 436 additions and 0 deletions

View file

@ -0,0 +1,30 @@
using System;
using System.Runtime.InteropServices;
namespace Syping.RagePhoto {
[StructLayout(LayoutKind.Sequential)]
public readonly struct RagePhotoData {
readonly IntPtr jpeg;
[MarshalAs(UnmanagedType.LPUTF8Str)]
readonly String description;
[MarshalAs(UnmanagedType.LPUTF8Str)]
readonly String json;
[MarshalAs(UnmanagedType.LPUTF8Str)]
readonly String header;
[MarshalAs(UnmanagedType.LPUTF8Str)]
readonly String title;
readonly Int32 error;
readonly UInt32 descBuffer;
readonly UInt32 descOffset;
readonly UInt32 endOfFile;
readonly UInt32 headerSum;
readonly UInt32 headerSum2;
readonly UInt32 jpegBuffer;
readonly UInt32 jpegSize;
readonly UInt32 jsonBuffer;
readonly UInt32 jsonOffset;
readonly UInt32 photoFormat;
readonly UInt32 titlBuffer;
readonly UInt32 titlOffset;
}
}