public static STAT ParseStat(IntPtr ptr)
{
STAT stat = new STAT();
int offset = 0;
stat.SortType = (uint)Marshal.ReadInt32(ptr, offset);
offset += sizeof(int);
stat.ContainerID = (uint)Marshal.ReadInt32(ptr, offset);
offset += sizeof(int);
stat.CurrentRec = (uint)Marshal.ReadInt32(ptr, offset);
offset += sizeof(int);
stat.Delta = Marshal.ReadInt32(ptr, offset);
offset += sizeof(int);
stat.NumPos = (uint)Marshal.ReadInt32(ptr, offset);
offset += sizeof(int);
stat.TotalRecs = (uint)Marshal.ReadInt32(ptr, offset);
offset += sizeof(int);
stat.CodePage = (uint)Marshal.ReadInt32(ptr, offset);
offset += sizeof(int);
stat.TemplateLocale = (uint)Marshal.ReadInt32(ptr, offset);
offset += sizeof(int);
stat.SortLocale = (uint)Marshal.ReadInt32(ptr, offset);
return stat;
}