Searched refs:Utf8Encoding (Results 1 – 3 of 3) sorted by relevance
49 internal static readonly Encoding Utf8Encoding = Encoding.UTF8; field in Google.Protobuf.WritingPrimitives168 int length = Utf8Encoding.GetByteCount(value); in WriteString()184 byte[] bytes = Utf8Encoding.GetBytes(value); in WriteString()194 … bytesUsed = Utf8Encoding.GetBytes(sourceChars, source.Length, destinationBytes, buffer.Length); in WriteString()207 byte[] bytes = Utf8Encoding.GetBytes(value); in WriteString()
135 int byteArraySize = WritingPrimitives.Utf8Encoding.GetByteCount(value); in ComputeStringSize()
605 value = WritingPrimitives.Utf8Encoding.GetString(sourceBytes, length); in ReadRawString()648 return WritingPrimitives.Utf8Encoding.GetString(pByteSpan, length); in ReadStringSlow()666 …return WritingPrimitives.Utf8Encoding.GetString(ReadRawBytes(ref buffer, ref state, length), 0, le… in ReadStringSlow()