libragephoto: update .NET version to 0.6.1.2
- 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
This commit is contained in:
parent
59bd3c1249
commit
a0ec84cbc8
4 changed files with 84 additions and 77 deletions
|
@ -2,17 +2,14 @@
|
|||
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 IntPtr description;
|
||||
readonly IntPtr json;
|
||||
readonly IntPtr header;
|
||||
readonly IntPtr title;
|
||||
readonly Int32 error;
|
||||
readonly UInt32 descBuffer;
|
||||
readonly UInt32 descOffset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue