mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
16
Brutal.Localization/Buffers/FixedMemoryWriterLengthHint.cs
Normal file
16
Brutal.Localization/Buffers/FixedMemoryWriterLengthHint.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Reference in a new issue