/// <summary> /// Check if SpanByte is marked as read-only, using 2 most significant bits from the length header /// </summary> public bool IsMarkedReadOnly() => IntExclusiveLocker.IsMarked(ref length);
public void Unlock() => IntExclusiveLocker.Unlock(ref length);
/// <summary> /// Mark SpanByte as read-only, using 2 most significant bits from the length header /// </summary> public void MarkReadOnly() => IntExclusiveLocker.Mark(ref length);
public void SpinLock() => IntExclusiveLocker.SpinLock(ref length);