php editor Xigua is here to share with you a question about "unmarshalling asn failed". In network communications, ASN (Autonomous System Number) is a number used to identify an autonomous system. However, sometimes the ungrouping fails when ungrouping the ASN. This may be caused by incorrect ASN encoding format, corrupted ASN packets, or incompatible parsers. In this article, we will discuss the reasons and solutions for the failure of unmarshalling ASN to help everyone better understand and solve this problem.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
I tried to unmarshal but got the following error:
1 2 3 |
|
Can anyone help? Thanks
0x020105
encodes the integer 5 (see https://www.php.cn/link/8ae7733f9bc11275e8d0a0fdabe5be0a), so it should Unmarshal it to an integer instead of a struct with integer fields:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
and SimpleStruct{Value: 5}
is marshalled to 0x3003020105
:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
The above is the detailed content of Unmarshalling asn failed. For more information, please follow other related articles on the PHP Chinese website!