|
|
@ -245,6 +245,7 @@ namespace Google.Protobuf |
|
|
|
/// are copied, so further modifications to the span will not |
|
|
|
/// are copied, so further modifications to the span will not |
|
|
|
/// be reflected in the returned <see cref="ByteString" />. |
|
|
|
/// be reflected in the returned <see cref="ByteString" />. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
|
|
|
|
[SecuritySafeCritical] |
|
|
|
public static ByteString CopyFrom(ReadOnlySpan<byte> bytes) |
|
|
|
public static ByteString CopyFrom(ReadOnlySpan<byte> bytes) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return new ByteString(bytes.ToArray()); |
|
|
|
return new ByteString(bytes.ToArray()); |
|
|
|