• Home
  • Raw
  • Download

Lines Matching refs:bytes

48         private readonly byte[] bytes;  field in Google.Protobuf.ByteString
59 internal static ByteString FromBytes(byte[] bytes) in FromBytes() argument
61 return new ByteString(bytes); in FromBytes()
68 internal static byte[] GetBuffer(ByteString bytes) in GetBuffer() argument
70 return bytes.bytes; in GetBuffer()
77 internal static ByteString AttachBytes(byte[] bytes) in AttachBytes() argument
79 return new ByteString(bytes); in AttachBytes()
86 private ByteString(byte[] bytes) in ByteString() argument
88 this.bytes = bytes; in ByteString()
104 get { return bytes.Length; }
122 return (byte[]) bytes.Clone(); in ToByteArray()
131 return Convert.ToBase64String(bytes); in ToBase64()
137 public static ByteString FromBase64(string bytes) in FromBase64() argument
141 return bytes == "" ? Empty : new ByteString(Convert.FromBase64String(bytes)); in FromBase64()
151 public static ByteString CopyFrom(params byte[] bytes) in CopyFrom() argument
153 return new ByteString((byte[]) bytes.Clone()); in CopyFrom()
159 public static ByteString CopyFrom(byte[] bytes, int offset, int count) in CopyFrom() argument
162 ByteArray.Copy(bytes, offset, portion, 0, count); in CopyFrom()
188 get { return bytes[index]; }
202 return encoding.GetString(bytes, 0, bytes.Length); in ToString()
224 return ((IEnumerable<byte>) bytes).GetEnumerator(); in GetEnumerator()
242 return new CodedInputStream(bytes); in CreateCodedInput()
261 if (lhs.bytes.Length != rhs.bytes.Length) in operator ==()
267 if (rhs.bytes[i] != lhs.bytes[i]) in operator ==()
304 foreach (byte b in bytes) in GetHashCode()
326 outputStream.WriteRawBytes(bytes, 0, bytes.Length); in WriteRawBytesTo()
334 ByteArray.Copy(bytes, 0, array, position, bytes.Length); in CopyTo()
342 outputStream.Write(bytes, 0, bytes.Length); in WriteTo()