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