Cosmos/source/Cosmos.Core.Memory/DataLookupEntry.cs
2016-06-10 13:01:20 -04:00

16 lines
458 B
C#

using System.Runtime.InteropServices;
namespace Cosmos.Core
{
[StructLayout(LayoutKind.Explicit)]
internal unsafe struct DataLookupEntry
{
[FieldOffset(0)]
public void* DataBlock;
[FieldOffset(4)]
public uint Size;
// Refcount will be UInt32.MaxValue (0xFFFFFFFF) in case the block has been freed, but the memory hasn't been compacted yet
[FieldOffset(8)]
public uint Refcount;
}
}