1
1
mirror of https://github.com/wader/fq.git synced 2024-12-21 12:21:39 +03:00
fq/format/asn1/testdata/tc16.xml
Mattias Wadman 0829c167cc asn1_ber: Add decoder
Basic support, can also do CER and DER but without any extra validation.
No schema support.

Redo format doc.md usage a bit, now format/<dir>/<format>.md instead.

Related to #20
2022-02-06 22:13:03 +01:00

35 lines
1017 B
XML

<?xml version="1.0"?>
<REAL>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>12</length>
</length_block>
<value_block>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>1</exponent_format>
</information_block>
<exponent_block>
<is_hex_only>false</is_hex_only>
<value_dec>-5</value_dec>
</exponent_block>
<mantissa_block>
<warnings>
<warning>Too big REAL mantissa for decoding, hex only</warning>
</warnings>
<is_hex_only>true</is_hex_only>
<value_hex>05 05 05 05 05 05 05 05 05 05</value_hex>
</mantissa_block>
<value_hex>{05 05 05 05 05 05 05 05 05 05} * 2^-5</value_hex>
</value_block>
</REAL>