public StoreArea(StoreBase store, long id, long offset, bool readOnly, long fixedSize)
{
Store = store;
Id = id;
IsReadOnly = readOnly;
// Check the offset is valid
if (offset != FixedAreaOffset)
{
store.CheckOffset(offset);
}
StartOffset = offset;
position = StartOffset;
EndOffset = StartOffset + fixedSize;
}