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