- RagePhoto.cs: add missing [return: MarshalAs(UnmanagedType.Bool)] - RagePhoto.cs: update filePath instances to path - RagePhotoData.cs: update Strings to IntPtr (more safe to Marshal) - RagePhotoTypes.cs: move DefaultSize, PhotoError and PhotoFormat to here
27 lines
798 B
C#
27 lines
798 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Syping.RagePhoto {
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public readonly struct RagePhotoData {
|
|
readonly IntPtr jpeg;
|
|
readonly IntPtr description;
|
|
readonly IntPtr json;
|
|
readonly IntPtr header;
|
|
readonly IntPtr 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;
|
|
}
|
|
}
|