mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
16 lines
698 B
C#
16 lines
698 B
C#
namespace Brutal.Localization.FixedBuffers;
|
|
|
|
public static class LengthHint
|
|
{
|
|
/// <summary>
|
|
/// Pass this to <see cref="IFixedBufferWriter<T>.GetSpan" /> or <see cref="IFixedBufferWriter<T>.TryGetSpan" />
|
|
/// to request the largest available span size the writer can return.
|
|
/// </summary>
|
|
public static readonly ElementCount MaxLengthHint = int.MinValue + 1;
|
|
|
|
/// <summary>
|
|
/// Pass this to <see cref="IFixedBufferWriter<T>.GetSpan" /> or <see cref="IFixedBufferWriter<T>.TryGetSpan" />
|
|
/// to request any span size greater than or equal to one.
|
|
/// </summary>
|
|
public static readonly ElementCount NonZeroLengthHint = int.MinValue;
|
|
}
|