Home
last modified time | relevance | path

Searched refs:CopyFromUtf8 (Results 1 - 5 of 5) sorted by relevance

/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
H A DByteStringTest.cs89 Assert.IsTrue(ByteString.CopyFromUtf8("").IsEmpty); in IsEmptyWhenEmpty()
95 Assert.IsFalse(ByteString.CopyFromUtf8("X").IsEmpty); in IsEmptyWhenNotEmpty()
112 ByteString bs = ByteString.CopyFromUtf8("Hello"); in ToByteArrayCopiesContents()
124 ByteString bs = ByteString.CopyFromUtf8("\u20ac"); in CopyFromUtf8UsesUtf8()
144 ByteString bs = ByteString.CopyFromUtf8("\u20ac"); in ToStringUtf8()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DByteStringTest.cs93 Assert.IsTrue(ByteString.CopyFromUtf8("").IsEmpty); in IsEmptyWhenEmpty()
99 Assert.IsFalse(ByteString.CopyFromUtf8("X").IsEmpty); in IsEmptyWhenNotEmpty()
116 ByteString bs = ByteString.CopyFromUtf8("Hello"); in ToByteArrayCopiesContents()
128 ByteString bs = ByteString.CopyFromUtf8("\u20ac"); in CopyFromUtf8UsesUtf8()
148 ByteString bs = ByteString.CopyFromUtf8("\u20ac"); in ToStringUtf8()
H A DGeneratedMessageTest.Proto2.cs70 Assert.AreEqual(ByteString.CopyFromUtf8("world"), message.DefaultBytes); in DefaultProto2Values()
167 Assert.AreEqual(ByteString.CopyFromUtf8("world"), message.GetExtension(DefaultBytesExtension)); in DefaultExtensionValues()
/third_party/protobuf/csharp/src/Google.Protobuf/
H A DByteString.cs266 public static ByteString CopyFromUtf8(string text) in CopyFromUtf8() method in Google.Protobuf.ByteString
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
H A DCustomOptionsTest.cs107 AssertOption(ByteString.CopyFromUtf8("Hello\0World"), customOptions.TryGetBytes, BytesOpt, d.GetOption, d.GetOptions().GetExtension); in ScalarOptions()

Completed in 4 milliseconds