Home | History | Annotate | Download | only in Google.Protobuf

Lines Matching refs:new

46         private static readonly ByteString empty = new ByteString(new byte[0]);

56 /// Constructs a new ByteString from the given byte array. The array is
61 return new ByteString(bytes);
79 return new ByteString(bytes);
83 /// Constructs a new ByteString from the given byte array. The array is
141 return bytes == "" ? Empty : new ByteString(Convert.FromBase64String(bytes));
153 return new ByteString((byte[]) bytes.Clone());
161 byte[] portion = new byte[count];
163 return new ByteString(portion);
167 /// Creates a new <see cref="ByteString" /> by encoding the specified text with
172 return new ByteString(encoding.GetBytes(text));
176 /// Creates a new <see cref="ByteString" /> by encoding the specified text in UTF-8.
242 return new CodedInputStream(bytes);