27 references to GetBuffer
System.Private.DataContractSerialization (27)
System\Xml\XmlBinaryWriter.cs (10)
80byte[] buffer = GetBuffer(size, out offset); 122byte[] buffer = GetBuffer(sizeof(T), out int offset); 404byte[] buffer = GetBuffer(1 + charCount * maxBytesPerChar, out offset); 421byte[] buffer = GetBuffer(5, out offset); 530byte[] buffer = GetBuffer(trailByteCount, out offset); 653byte[] buffer = GetBuffer(1 + 1 + charCount * maxBytesPerChar, out offset); 924Span<byte> span = GetBuffer(sizeof(float), out int bufferOffset).AsSpan(bufferOffset, sizeof(float)); 942Span<byte> span = GetBuffer(sizeof(double), out int bufferOffset).AsSpan(bufferOffset, sizeof(double)); 964Span<byte> span = GetBuffer(16, out int bufferOffset).AsSpan(bufferOffset, 16); 995Span<byte> bytes = GetBuffer(16, out int bufferOffset).AsSpan(bufferOffset, 16);
System\Xml\XmlStreamNodeWriter.cs (7)
217byte[] buffer = GetBuffer(byteCount, out offset); 232var buffer = GetBuffer(bytes.Length, out int offset).AsSpan(offset, bytes.Length); 281byte[] buffer = GetBuffer(value.Length, out int offset); 301byte[] buffer = GetBuffer(chunkSize * maxBytesPerChar, out offset); 309byte[] buffer = GetBuffer(charCount * maxBytesPerChar, out offset); 323byte[] buffer = GetBuffer(chunkSize * 2, out offset); 331byte[] buffer = GetBuffer(charCount * 2, out offset);
System\Xml\XmlUTF8TextWriter.cs (10)
564byte[] buffer = GetBuffer(XmlConverter.MaxBoolChars, out int offset); 570byte[] buffer = GetBuffer(XmlConverter.MaxDecimalChars, out int offset); 576byte[] buffer = GetBuffer(XmlConverter.MaxDoubleChars, out int offset); 582byte[] buffer = GetBuffer(XmlConverter.MaxFloatChars, out int offset); 588byte[] buffer = GetBuffer(XmlConverter.MaxDateTimeChars, out int offset); 609byte[] buffer = GetBuffer(XmlConverter.MaxInt32Chars, out int offset); 615byte[] buffer = GetBuffer(XmlConverter.MaxInt64Chars, out int offset); 621byte[] buffer = GetBuffer(XmlConverter.MaxUInt64Chars, out int offset); 656byte[] chars = GetBuffer(charCount, out int charOffset); 663byte[] chars = GetBuffer(4, out int charOffset);