25 lines
511 B
C#
25 lines
511 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Lucidiot.Raima {
|
|
public enum KeyOrdering : byte {
|
|
Ascending = (byte)'a',
|
|
Descending = (byte)'d'
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Explicit, Size = 7)]
|
|
public struct KeyEntry {
|
|
[FieldOffset(0)]
|
|
public short KeyFieldIndex;
|
|
|
|
[FieldOffset(2)]
|
|
public short FieldIndex;
|
|
|
|
[FieldOffset(4)]
|
|
public short Offset;
|
|
|
|
[FieldOffset(6)]
|
|
public KeyOrdering Ordering;
|
|
}
|
|
}
|