SpanT is available in .Net Standard 2.0. (#6137)

This commit is contained in:
春条
2020-09-26 02:39:28 +09:00
committed by GitHub
parent dca12522a9
commit 52e3628794
3 changed files with 53 additions and 29 deletions

View File

@@ -206,7 +206,7 @@ namespace FlatBuffers
_space = _bb.Put(_space, x);
}
#if ENABLE_SPAN_T
#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1)
/// <summary>
/// Puts a span of type T into this builder at the
/// current offset
@@ -317,7 +317,7 @@ namespace FlatBuffers
Put(x);
}
#if ENABLE_SPAN_T
#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1)
/// <summary>
/// Add a span of type T to the buffer (aligns the data and grows if necessary).
/// </summary>
@@ -567,7 +567,7 @@ namespace FlatBuffers
}
#if ENABLE_SPAN_T
#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1)
/// <summary>
/// Creates a string in the buffer from a Span containing
/// a UTF8 string.