20 references to CborHelpers
System.Formats.Cbor (20)
System\Formats\Cbor\Reader\CborReader.Simple.cs (5)
32
result = HalfHelpers.HalfToFloat(
CborHelpers
.ReadHalfBigEndian(buffer.Slice(1)));
39
result =
CborHelpers
.ReadSingleBigEndian(buffer.Slice(1));
73
result = HalfHelpers.HalfToDouble(
CborHelpers
.ReadHalfBigEndian(buffer.Slice(1)));
80
result =
CborHelpers
.ReadSingleBigEndian(buffer.Slice(1));
87
result =
CborHelpers
.ReadDoubleBigEndian(buffer.Slice(1));
System\Formats\Cbor\Reader\CborReader.String.cs (6)
195
result =
CborHelpers
.GetString(utf8Encoding, encodedString);
247
CborHelpers
.GetChars(utf8Encoding, encodedSlice, destination);
390
string output =
CborHelpers
.BuildStringFromIndefiniteLengthTextString(concatenatedStringSize, (ranges, _data.Slice(_offset), utf8Encoding), BuildString);
403
int charsWritten =
CborHelpers
.GetChars(input.utf8Encoding, source.Slice(o, l), target);
432
CborHelpers
.GetChars(utf8Encoding, buffer.Slice(o, l), destination);
510
return
CborHelpers
.GetCharCount(utf8Encoding, buffer);
System\Formats\Cbor\Reader\CborReader.Tag.cs (2)
128
return
CborHelpers
.UnixEpoch + timespan;
178
BigInteger unsignedValue =
CborHelpers
.CreateBigIntegerFromUnsignedBigEndianBytes(unsignedBigEndianEncoding);
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.String.cs (2)
134
length =
CborHelpers
.GetByteCount(utf8Encoding, value);
153
CborHelpers
.GetBytes(utf8Encoding, value, _buffer.AsSpan(_offset, length));
System\Formats\Cbor\Writer\CborWriter.Tag.cs (3)
96
byte[] unsignedBigEndianEncoding =
CborHelpers
.CreateUnsignedBigEndianBytesFromBigInteger(unsignedValue);
150
CborHelpers
.GetBitsFromDecimal(value, buf);
162
CborHelpers
.GetBitsFromDecimal(mantissa, buf);