mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
19 lines
532 B
C#
19 lines
532 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Cosmos.Core.Memory.Old
|
|
{
|
|
[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;
|
|
}
|
|
}
|