Ejemplo n.º 1
0
 /// <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);
Ejemplo n.º 2
0
 public void Unlock() => IntExclusiveLocker.Unlock(ref length);
Ejemplo n.º 3
0
 /// <summary>
 /// Mark SpanByte as read-only, using 2 most significant bits from the length header
 /// </summary>
 public void MarkReadOnly() => IntExclusiveLocker.Mark(ref length);
Ejemplo n.º 4
0
 public void SpinLock() => IntExclusiveLocker.SpinLock(ref length);