コード例 #1
0
ファイル: Metadata.cs プロジェクト: zonghaishang/grpc
 /// <summary>
 /// Gets the serialized value for this entry. For binary metadata entries, this leaks
 /// the internal <c>valueBytes</c> byte array and caller must not change contents of it.
 /// </summary>
 internal byte[] GetSerializedValueUnsafe()
 {
     return(valueBytes ?? MarshalUtils.GetBytesASCII(value));
 }