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