39 lines
844 B
C#
39 lines
844 B
C#
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'
|
|
}
|
|
|
|
[Flags]
|
|
public enum SetEntryOptions : ushort {
|
|
None = 0x0000,
|
|
Timestamped = 0x0001
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Explicit, Size = 11)]
|
|
public struct SetEntry {
|
|
[FieldOffset(0)]
|
|
public SetOrdering Ordering;
|
|
|
|
[FieldOffset(1)]
|
|
public short RecordEntryIndex;
|
|
|
|
[FieldOffset(3)]
|
|
public short Offset;
|
|
|
|
[FieldOffset(5)]
|
|
public short FirstMemberEntryIndex;
|
|
|
|
[FieldOffset(7)]
|
|
public short MemberCount;
|
|
|
|
[FieldOffset(9)]
|
|
public SetEntryOptions Options;
|
|
}
|
|
} |