19 writes to _offset
System.Formats.Cbor (19)
System\Formats\Cbor\Writer\CborWriter.Array.cs (2)
88
_offset
= _frameOffset - 1;
90
_offset
= currentOffset + bytesToShift;
System\Formats\Cbor\Writer\CborWriter.cs (4)
110
_offset
= 0;
148
_offset
+= encodedValue.Length;
385
_buffer[
_offset
++] = initialByte.InitialByte;
417
_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)
107
_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)
57
_offset
+= value.Length;
154
_offset
+= length;
227
_offset
= _frameOffset - 1;
230
_offset
+= definiteLength;
32 references to _offset
System.Formats.Cbor (32)
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
74
int currentOffset =
_offset
;
System\Formats\Cbor\Writer\CborWriter.cs (8)
53
public int BytesWritten =>
_offset
;
106
if (
_offset
> 0)
108
Array.Clear(_buffer, 0,
_offset
);
147
encodedValue.CopyTo(_buffer.AsSpan(
_offset
));
228
return new ReadOnlySpan<byte>(_buffer, 0,
_offset
);
239
int requiredCapacity =
_offset
+ pendingCount;
253
new ReadOnlySpan<byte>(_buffer, 0,
_offset
).CopyTo(newBuffer);
277
_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)
73
_currentKeyOffset =
_offset
;
86
_currentKeyOffset =
_offset
;
101
(int Offset, int Length) currentKey = (_currentKeyOffset.Value,
_offset
- _currentKeyOffset.Value);
106
_buffer.AsSpan(currentKey.Offset,
_offset
).Clear();
114
_currentValueOffset =
_offset
;
128
totalLength:
_offset
- _currentKeyOffset.Value);
144
_currentKeyOffset =
_offset
;
158
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)
53
_currentIndefiniteLengthStringRanges.Add((
_offset
, value.Length));
56
value.CopyTo(_buffer.AsSpan(
_offset
));
150
_currentIndefiniteLengthStringRanges.Add((
_offset
, value.Length));
153
CborHelpers.GetBytes(utf8Encoding, value, _buffer.AsSpan(
_offset
, length));
203
int initialOffset =
_offset
;
229
tempSpan.CopyTo(buffer.Slice(
_offset
, definiteLength));
235
buffer.Slice(
_offset
, initialOffset -
_offset
).Clear();