2 writes to _buffer
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.cs (2)
95
_buffer
= initialCapacity switch
254
_buffer
= newBuffer;
25 references to _buffer
System.Formats.Cbor (25)
System\Formats\Cbor\Writer\CborWriter.Array.cs (2)
82
ReadOnlySpan<byte> elementEncoding =
_buffer
.AsSpan(_frameOffset, currentOffset - _frameOffset);
83
Span<byte> target =
_buffer
.AsSpan(_frameOffset + bytesToShift, currentOffset - _frameOffset);
System\Formats\Cbor\Writer\CborWriter.cs (7)
108
Array.Clear(
_buffer
, 0, _offset);
147
encodedValue.CopyTo(
_buffer
.AsSpan(_offset));
228
return new ReadOnlySpan<byte>(
_buffer
, 0, _offset);
238
int currentCapacity =
_buffer
.Length;
253
new ReadOnlySpan<byte>(
_buffer
, 0, _offset).CopyTo(newBuffer);
385
_buffer
[_offset++] = initialByte.InitialByte;
417
_buffer
[_offset++] = CborInitialByte.IndefiniteLengthBreakByte;
System\Formats\Cbor\Writer\CborWriter.Integer.cs (4)
96
_buffer
[_offset++] = (byte)value;
102
BinaryPrimitives.WriteUInt16BigEndian(
_buffer
.AsSpan(_offset), (ushort)value);
109
BinaryPrimitives.WriteUInt32BigEndian(
_buffer
.AsSpan(_offset), (uint)value);
116
BinaryPrimitives.WriteUInt64BigEndian(
_buffer
.AsSpan(_offset), value);
System\Formats\Cbor\Writer\CborWriter.Map.cs (4)
106
_buffer
.AsSpan(currentKey.Offset, _offset).Clear();
159
Span<byte> source =
_buffer
.AsSpan();
272
return _writer.
_buffer
.AsSpan(range.Offset, range.Length);
277
return _writer.
_buffer
.AsSpan(range.Offset, range.KeyLength);
System\Formats\Cbor\Writer\CborWriter.Simple.cs (3)
66
CborHelpers.WriteSingleBigEndian(
_buffer
.AsSpan(_offset), value);
75
CborHelpers.WriteDoubleBigEndian(
_buffer
.AsSpan(_offset), value);
127
_buffer
[_offset++] = (byte)value;
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (2)
26
BinaryPrimitives.WriteUInt16BigEndian(
_buffer
.AsSpan(_offset), PositiveQNaNBitsHalf);
30
BinaryPrimitives.WriteHalfBigEndian(
_buffer
.AsSpan(_offset), value);
System\Formats\Cbor\Writer\CborWriter.String.cs (3)
56
value.CopyTo(
_buffer
.AsSpan(_offset));
153
CborHelpers.GetBytes(utf8Encoding, value,
_buffer
.AsSpan(_offset, length));
212
Span<byte> buffer =
_buffer
.AsSpan();