19 writes to _offset
System.Formats.Cbor (19)
System\Formats\Cbor\Writer\CborWriter.Array.cs (2)
90
_offset
= _frameOffset - 1;
92
_offset
= currentOffset + bytesToShift;
System\Formats\Cbor\Writer\CborWriter.cs (4)
147
_offset
= 0;
186
_offset
+= encodedValue.Length;
437
_buffer[
_offset
++] = initialByte.InitialByte;
469
_buffer[
_offset
++] = CborInitialByte.IndefiniteLengthBreakByte;
System\Formats\Cbor\Writer\CborWriter.Integer.cs (4)
96
_buffer[
_offset
++] = (byte)value;
103
_offset
+= sizeof(ushort);
110
_offset
+= sizeof(uint);
117
_offset
+= sizeof(ulong);
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
109
_offset
= currentKey.Offset;
System\Formats\Cbor\Writer\CborWriter.Simple.cs (3)
67
_offset
+= sizeof(float);
76
_offset
+= sizeof(double);
127
_buffer[
_offset
++] = (byte)value;
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (1)
32
_offset
+= sizeof(short);
System\Formats\Cbor\Writer\CborWriter.String.cs (4)
54
_offset
+= value.Length;
150
_offset
+= length;
225
_offset
= _frameOffset - 1;
228
_offset
+= definiteLength;
32 references to _offset
System.Formats.Cbor (32)
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
76
int currentOffset =
_offset
;
System\Formats\Cbor\Writer\CborWriter.cs (8)
58
public int BytesWritten =>
_offset
;
143
if (
_offset
> 0)
145
Array.Clear(_buffer, 0,
_offset
);
185
encodedValue.CopyTo(_buffer.AsSpan(
_offset
));
274
return new ReadOnlySpan<byte>(_buffer, 0,
_offset
);
285
int requiredCapacity =
_offset
+ pendingCount;
295
new ReadOnlySpan<byte>(_buffer, 0,
_offset
).CopyTo(newBuffer);
329
_frameOffset =
_offset
;
System\Formats\Cbor\Writer\CborWriter.Integer.cs (3)
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 (8)
74
_currentKeyOffset =
_offset
;
88
_currentKeyOffset =
_offset
;
103
(int Offset, int Length) currentKey = (_currentKeyOffset.Value,
_offset
- _currentKeyOffset.Value);
108
_buffer.AsSpan(currentKey.Offset,
_offset
).Clear();
116
_currentValueOffset =
_offset
;
130
totalLength:
_offset
- _currentKeyOffset.Value);
146
_currentKeyOffset =
_offset
;
160
int totalMapPayloadEncodingLength =
_offset
- _frameOffset;
System\Formats\Cbor\Writer\CborWriter.Simple.cs (2)
66
CborHelpers.WriteSingleBigEndian(_buffer.AsSpan(
_offset
), value);
75
CborHelpers.WriteDoubleBigEndian(_buffer.AsSpan(
_offset
), 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 (8)
50
_currentIndefiniteLengthStringRanges.Add((
_offset
, value.Length));
53
value.CopyTo(_buffer.AsSpan(
_offset
));
146
_currentIndefiniteLengthStringRanges.Add((
_offset
, value.Length));
149
utf8Encoding.GetBytes(value, _buffer.AsSpan(
_offset
, length));
201
int initialOffset =
_offset
;
227
tempSpan.CopyTo(buffer.Slice(
_offset
, definiteLength));
233
buffer.Slice(
_offset
, initialOffset -
_offset
).Clear();