• Home
  • Raw
  • Download

Lines Matching refs:ByteString

52     public sealed class ByteString : IEnumerable<byte>, IEquatable<ByteString>  class
54 private static readonly ByteString empty = new ByteString(new byte[0]);
67 internal static ByteString FromBytes(byte[] bytes) in FromBytes()
69 return new ByteString(bytes); in FromBytes()
76 internal static ByteString AttachBytes(byte[] bytes) in AttachBytes()
78 return new ByteString(bytes); in AttachBytes()
85 private ByteString(byte[] bytes) in ByteString() method in Google.Protobuf.ByteString
93 public static ByteString Empty
164 public static ByteString FromBase64(string bytes) in FromBase64()
168 return bytes == "" ? Empty : new ByteString(Convert.FromBase64String(bytes)); in FromBase64()
178 public static ByteString FromStream(Stream stream) in FromStream()
202 …public async static Task<ByteString> FromStreamAsync(Stream stream, CancellationToken cancellation… in FromStreamAsync()
227 public static ByteString CopyFrom(params byte[] bytes) in CopyFrom()
229 return new ByteString((byte[]) bytes.Clone()); in CopyFrom()
235 public static ByteString CopyFrom(byte[] bytes, int offset, int count) in CopyFrom()
239 return new ByteString(portion); in CopyFrom()
248 public static ByteString CopyFrom(ReadOnlySpan<byte> bytes) in CopyFrom()
250 return new ByteString(bytes.ToArray()); in CopyFrom()
258 public static ByteString CopyFrom(string text, Encoding encoding) in CopyFrom()
260 return new ByteString(encoding.GetBytes(text)); in CopyFrom()
266 public static ByteString CopyFromUtf8(string text) in CopyFromUtf8()
339 public static bool operator ==(ByteString lhs, ByteString rhs) in operator ==()
369 public static bool operator !=(ByteString lhs, ByteString rhs) in operator !=()
381 return this == (obj as ByteString); in Equals()
404 public bool Equals(ByteString other) in Equals()