沈阳老旧居民小区周边将增设夜间临时停车带

百度 多个国家级团队就北京污染构成进行研究,所有的研究结果都有一个共同的结论,那就是机动车排放是当前北京的第一来源,现在拉高北京浓度的首先就是硝酸盐,已经远远超过了硫酸盐,这是我们要着力解决的问题。
public static class UnsafeByteOperations

Provides a number of unsafe byte operations to be used by advanced applications with high performance requirements. These methods are referred to as "unsafe" due to the fact that they potentially expose the backing buffer of a ByteString to the application.

Inheritance

object > UnsafeByteOperations

Namespace

Google.Protobuf

Assembly

Google.Protobuf.dll

Remarks

The methods in this class should only be called if it is guaranteed that the buffer backing the ByteString will never change! Mutation of a ByteString can lead to unexpected and undesirable consequences in your application, and will likely be difficult to debug. Proceed with caution!

This can have a number of significant side affects that have spooky-action-at-a-distance-like behavior. In particular, if the bytes value changes out from under a Protocol Buffer:

  • serialization may throw
  • serialization may succeed but the wrong bytes may be written out
  • objects that are normally immutable (such as ByteString) are no longer immutable
  • hashCode may be incorrect

Methods

UnsafeWrap(ReadOnlyMemory<byte>)

public static ByteString UnsafeWrap(ReadOnlyMemory<byte> bytes)

Constructs a new ByteString from the given bytes. The bytes are not copied, and must not be modified while the ByteString is in use. This API is experimental and subject to change.

Parameter
Name Description
bytes ReadOnlyMemorybyte
Returns
Type Description
ByteString