• Home
  • Raw
  • Download

Lines Matching refs:ByteString

48             ByteString b1 = ByteString.CopyFrom(1, 2, 3);  in Equality()
49 ByteString b2 = ByteString.CopyFrom(1, 2, 3); in Equality()
50 ByteString b3 = ByteString.CopyFrom(1, 2, 4); in Equality()
51 ByteString b4 = ByteString.CopyFrom(1, 2, 3, 4); in Equality()
63 Assert.IsTrue((ByteString) null == null); in Equality()
70 Assert.IsFalse((ByteString) null != null); in Equality()
76 Assert.AreEqual(0, ByteString.Empty.Length); in EmptyByteStringHasZeroSize()
82 ByteString bs = ByteString.CopyFrom("AB", Encoding.Unicode); in CopyFromStringWithExplicitEncoding()
93 Assert.IsTrue(ByteString.CopyFromUtf8("").IsEmpty); in IsEmptyWhenEmpty()
99 Assert.IsFalse(ByteString.CopyFromUtf8("X").IsEmpty); in IsEmptyWhenNotEmpty()
107 ByteString bs = ByteString.CopyFrom(data); in CopyFromByteArrayCopiesContents()
116 ByteString bs = ByteString.CopyFromUtf8("Hello"); in ToByteArrayCopiesContents()
128 ByteString bs = ByteString.CopyFromUtf8("\u20ac"); in CopyFromUtf8UsesUtf8()
139 ByteString bs = ByteString.CopyFrom(data, 2, 3); in CopyFromPortion()
148 ByteString bs = ByteString.CopyFromUtf8("\u20ac"); in ToStringUtf8()
155 ByteString bs = ByteString.CopyFrom("\u20ac", Encoding.Unicode); in ToStringWithExplicitEncoding()
164 ByteString bs = ByteString.FromBase64(base64); in FromBase64_WithText()
172 Assert.AreSame(ByteString.Empty, ByteString.FromBase64("")); in FromBase64_Empty()
181 var actual = ByteString.FromStream(stream); in FromStream_Seekable()
182 ByteString expected = ByteString.CopyFrom(2, 3, 4, 5); in FromStream_Seekable()
194 var actual = ByteString.FromStream(limitedStream); in FromStream_NotSeekable()
195 ByteString expected = ByteString.CopyFrom(2, 3, 4); in FromStream_NotSeekable()
206 var actual = await ByteString.FromStreamAsync(stream); in FromStreamAsync_Seekable()
207 ByteString expected = ByteString.CopyFrom(2, 3, 4, 5); in FromStreamAsync_Seekable()
219 var actual = await ByteString.FromStreamAsync(limitedStream); in FromStreamAsync_NotSeekable()
220 ByteString expected = ByteString.CopyFrom(2, 3, 4); in FromStreamAsync_NotSeekable()
232 ByteString b1 = ByteString.CopyFrom(100, 1, 2, 3, 4); in GetHashCode_Regression()
233 ByteString b2 = ByteString.CopyFrom(200, 1, 2, 3, 4); in GetHashCode_Regression()
240 var byteString = ByteString.CopyFrom(1, 2, 3, 4, 5); in GetContentsAsReadOnlySpan()
248 var byteString = ByteString.CopyFrom(1, 2, 3, 4, 5); in GetContentsAsReadOnlyMemory()