1 write to bytes
System.Runtime.Serialization (1)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
452bytes = new byte[BufferLength * 4];
20 references to bytes
System.Runtime.Serialization (20)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (20)
215byteCount = this.stream.Read(bytes, byteCount, (chars.Length - 1) * 2); 227int charCount = this.encoding.GetChars(bytes, 0, byteCount, chars, 0); 228byteCount = Encoding.UTF8.GetBytes(chars, 0, charCount, bytes, 0); 236Buffer.BlockCopy(bytes, byteOffset, buffer, offset, count); 285byteCount = enc.GetBytes(chars, 0, charCount, bytes, 0, false); 286this.stream.Write(bytes, 0, byteCount); 407bytes[max++] = (byte)b; 415w = bytes[max - 2] + (bytes[max - 1] << 8); 419w = bytes[max - 1] + (bytes[max - 2] << 8); 430bytes[max++] = (byte)b1; 431bytes[max++] = (byte)b2; 447if (bytes != null) 462int read = stream.Read(bytes, byteOffset + byteCount, count); 495int count = this.encoding.GetChars(bytes, byteOffset, byteCount, chars, 0); 497byteCount = ValidatingUTF8.GetBytes(chars, 0, count, bytes, 0); 540bytes[0] = (byte)b1; 546bytes[0] = (byte)b1; 547bytes[1] = (byte)b2;