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

@@ -86,7 +86,7 @@ namespace FlatBuffers
return offset + bb.GetInt(offset) + sizeof(int); // data starts after the length
}
#if ENABLE_SPAN_T
#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1)
// Get the data of a vector whoses offset is stored at "offset" in this object as an
// Spant<byte>. If the vector is not present in the ByteBuffer,
// then an empty span will be returned.