What does the "top ten ASCII" mean?

I may be doing a terrible job with Google, but these specifications for Bencoding continue to refer to what is called the "base ten ASCII", which makes me think that this is different from regular ASCII. Can someone explain?

+4
source share
5 answers

base is explicitly stated to avoid confusion (although it can be argued that base-10 is usually the default).

Consider this: given the textual representation of "12" (in ASCII), what is a numeric value?

  • If it is base-10, it will be 1 * 10 + 2 → 12.
  • If it was base-8 (oct), that would be 1 * 8 + 2 → 10.
  • base-16 (hex), 1 * 16 + 2 → 18.

, Bencode 10, 42 ( ) "i42e".


-16 -10 , ASCII- .. base-10 , Bencoded . ( , Bencoded , , " ".)

+7

" 10 ASCII", , - . , 10 ASCII.

+1

? , 5 base-10 5 101.

+1

integer encoded in base ten ASCII

, , , , 1, 9, 11, 123. ASCII http://en.wikipedia.org/wiki/ASCII#ASCII_control_code_chart

Dec Decumn

10, , ASCII ,

0

10 ASCII , ASCII 10 16.

A, , 65. 32. m 109.

() ASCII URL-, 16. URL% 41 A, %20 - , % 6D - m.

0

Source: https://habr.com/ru/post/1540998/


All Articles