|
@@ -110,7 +110,7 @@ namespace Google.Protobuf
|
|
get { return Length == 0; }
|
|
get { return Length == 0; }
|
|
}
|
|
}
|
|
|
|
|
|
-#if NETSTANDARD2_0
|
|
|
|
|
|
+#if GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Provides read-only access to the data of this <see cref="ByteString"/>.
|
|
/// Provides read-only access to the data of this <see cref="ByteString"/>.
|
|
/// No data is copied so this is the most efficient way of accessing.
|
|
/// No data is copied so this is the most efficient way of accessing.
|
|
@@ -218,7 +218,7 @@ namespace Google.Protobuf
|
|
return new ByteString(portion);
|
|
return new ByteString(portion);
|
|
}
|
|
}
|
|
|
|
|
|
-#if NETSTANDARD2_0
|
|
|
|
|
|
+#if GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Constructs a <see cref="ByteString" /> from a read only span. The contents
|
|
/// Constructs a <see cref="ByteString" /> from a read only span. The contents
|
|
/// are copied, so further modifications to the span will not
|
|
/// are copied, so further modifications to the span will not
|