mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 22:11:12 +00:00
SpanT is available in .Net Standard 2.0. (#6137)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user