Fix size of set ordering field
This commit is contained in:
parent
5a4f98489e
commit
ae5af5bbdc
|
@ -2,12 +2,12 @@ using System;
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Lucidiot.Raima {
|
||||
public enum SetOrdering : byte {
|
||||
Ascending = (byte)'a',
|
||||
Descending = (byte)'d',
|
||||
First = (byte)'f',
|
||||
Last = (byte)'l',
|
||||
None = (byte)'n'
|
||||
public enum SetOrdering : ushort {
|
||||
Ascending = (ushort)'a',
|
||||
Descending = (ushort)'d',
|
||||
First = (ushort)'f',
|
||||
Last = (ushort)'l',
|
||||
None = (ushort)'n'
|
||||
}
|
||||
|
||||
[Flags]
|
||||
|
@ -16,24 +16,24 @@ namespace Lucidiot.Raima {
|
|||
Timestamped = 0x0001
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit, Size = 11)]
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12)]
|
||||
public struct SetEntry {
|
||||
[FieldOffset(0)]
|
||||
public SetOrdering Ordering;
|
||||
|
||||
[FieldOffset(1)]
|
||||
[FieldOffset(2)]
|
||||
public short RecordEntryIndex;
|
||||
|
||||
[FieldOffset(3)]
|
||||
[FieldOffset(4)]
|
||||
public short Offset;
|
||||
|
||||
[FieldOffset(5)]
|
||||
[FieldOffset(6)]
|
||||
public short FirstMemberEntryIndex;
|
||||
|
||||
[FieldOffset(7)]
|
||||
[FieldOffset(8)]
|
||||
public short MemberCount;
|
||||
|
||||
[FieldOffset(9)]
|
||||
[FieldOffset(10)]
|
||||
public SetEntryOptions Options;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue