[{"data":1,"prerenderedAt":872},["ShallowReactive",2],{"navigation_docs":3,"-encodings-prefix":140,"-encodings-prefix-surround":867},[4,52],{"title":5,"path":6,"stem":7,"children":8,"icon":51},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39,43,47],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Encoding and Decoding","\u002Fguide\u002Fencoding","1.guide\u002F02.encoding",{"title":16,"path":17,"stem":18},"Checksums","\u002Fguide\u002Fchecksums","1.guide\u002F03.checksums",{"title":20,"path":21,"stem":22},"Identify","\u002Fguide\u002Fidentify","1.guide\u002F04.identify",{"title":24,"path":25,"stem":26},"CLI","\u002Fguide\u002Fcli","1.guide\u002F05.cli",{"title":28,"path":29,"stem":30},"Agents","\u002Fguide\u002Fagents","1.guide\u002F06.agents",{"title":32,"path":33,"stem":34},"Code pages","\u002Fguide\u002Fcode-pages","1.guide\u002F07.code-pages",{"title":36,"path":37,"stem":38},"RLP","\u002Fguide\u002Frlp","1.guide\u002F08.rlp",{"title":40,"path":41,"stem":42},"OpenPGP armor","\u002Fguide\u002Farmor","1.guide\u002F09.armor",{"title":44,"path":45,"stem":46},"Custom Encodings","\u002Fguide\u002Fcustom","1.guide\u002F10.custom",{"title":48,"path":49,"stem":50},"Playground","\u002Fguide\u002Fplayground","1.guide\u002F11.playground","i-lucide-book-open",{"title":53,"path":54,"stem":55,"children":56,"icon":139},"Encodings","\u002Fencodings","2.encodings\u002F00.index",[57,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135],{"title":58,"path":54,"stem":55},"Every encoding",{"title":60,"path":61,"stem":62},"Binary","\u002Fencodings\u002Fbinary","2.encodings\u002F01.binary",{"title":64,"path":65,"stem":66},"Octal","\u002Fencodings\u002Foctal","2.encodings\u002F02.octal",{"title":68,"path":69,"stem":70},"Decimal","\u002Fencodings\u002Fdecimal","2.encodings\u002F03.decimal",{"title":72,"path":73,"stem":74},"Integer","\u002Fencodings\u002Finteger","2.encodings\u002F03.integer",{"title":76,"path":77,"stem":78},"Hex","\u002Fencodings\u002Fhex","2.encodings\u002F04.hex",{"title":80,"path":81,"stem":82},"Base32","\u002Fencodings\u002Fbase32","2.encodings\u002F05.base32",{"title":84,"path":85,"stem":86},"Base45","\u002Fencodings\u002Fbase45","2.encodings\u002F09.base45",{"title":88,"path":89,"stem":90},"Base58","\u002Fencodings\u002Fbase58","2.encodings\u002F10.base58",{"title":92,"path":93,"stem":94},"Base64","\u002Fencodings\u002Fbase64","2.encodings\u002F14.base64",{"title":96,"path":97,"stem":98},"Base85","\u002Fencodings\u002Fbase85","2.encodings\u002F18.base85",{"title":100,"path":101,"stem":102},"basE91","\u002Fencodings\u002Fbase91","2.encodings\u002F19.base91",{"title":104,"path":105,"stem":106},"Base256","\u002Fencodings\u002Fbase256","2.encodings\u002F20.base256",{"title":108,"path":109,"stem":110},"Bech32","\u002Fencodings\u002Fbech32","2.encodings\u002F21.bech32",{"title":112,"path":113,"stem":114},"uuencode","\u002Fencodings\u002Fuuencode","2.encodings\u002F22.uuencode",{"title":116,"path":117,"stem":118},"Quoted-Printable","\u002Fencodings\u002Fquoted-printable","2.encodings\u002F23.quoted-printable",{"title":120,"path":121,"stem":122},"HTML","\u002Fencodings\u002Fhtml","2.encodings\u002F24.html",{"title":124,"path":125,"stem":126},"ITA2","\u002Fencodings\u002Fita2","2.encodings\u002F25.ita2",{"title":128,"path":129,"stem":130},"Prefix codes","\u002Fencodings\u002Fprefix","2.encodings\u002F26.prefix",{"title":132,"path":133,"stem":134},"Chess squares","\u002Fencodings\u002Fsquare","2.encodings\u002F27.square",{"title":136,"path":137,"stem":138},"FEN","\u002Fencodings\u002Ffen","2.encodings\u002F28.fen","i-lucide-library",{"id":141,"title":128,"body":142,"description":860,"extension":861,"links":862,"meta":863,"navigation":864,"path":129,"seo":865,"stem":130,"__hash__":866},"docs\u002F2.encodings\u002F26.prefix.md",{"type":143,"value":144,"toc":851},"minimark",[145,149,156,226,229,234,249,255,283,286,289,317,320,347,351,354,378,392,396,403,431,442,445,472,476,510,563,573,583,587,590,641,644,716,720,729,733,749,777,789,805,832,839,847],[146,147],"encoding-facts",{"name":148},"prefix",[150,151,152,155],"p",{},[153,154,148],"code",{}," turns bits into symbols using variable-length codewords. Give it a codebook and let it read the stream.",[157,158,163],"pre",{"className":159,"code":160,"language":161,"meta":162,"style":162},"language-ts shiki shiki-themes encodings encodings encodings","encode(\"prefix\", \"ABRACADABRA\", { codebook: \"A=0 B=10 R=110 C=1110 D=1111\" });  \u002F\u002F \"01011001110011110101100\"\ndecode(\"prefix\", \"01011001110011110101100\", { codebook: \"A=0 B=10 R=110 C=1110 D=1111\" }).bytes;  \u002F\u002F \"ABRACADABRA\"\n","ts","",[153,164,165,201],{"__ignoreMap":162},[166,167,170,174,178,182,185,188,191,194,197],"span",{"class":168,"line":169},"line",1,[166,171,173],{"class":172},"sK71F","encode",[166,175,177],{"class":176},"s38Sx","(",[166,179,181],{"class":180},"shU9J","\"prefix\"",[166,183,184],{"class":176},", ",[166,186,187],{"class":180},"\"ABRACADABRA\"",[166,189,190],{"class":176},", { codebook: ",[166,192,193],{"class":180},"\"A=0 B=10 R=110 C=1110 D=1111\"",[166,195,196],{"class":176}," });  ",[166,198,200],{"class":199},"scIB-","\u002F\u002F \"01011001110011110101100\"\n",[166,202,204,207,209,211,213,216,218,220,223],{"class":168,"line":203},2,[166,205,206],{"class":172},"decode",[166,208,177],{"class":176},[166,210,181],{"class":180},[166,212,184],{"class":176},[166,214,215],{"class":180},"\"01011001110011110101100\"",[166,217,190],{"class":176},[166,219,193],{"class":180},[166,221,222],{"class":176}," }).bytes;  ",[166,224,225],{"class":199},"\u002F\u002F \"ABRACADABRA\"\n",[150,227,228],{},"That's the whole trick. No hand-written automaton next to your script, and no arguing with it about the last few bits. Algorithm textbooks feed this exact word to Huffman, so it gets to cast the first spell here too.",[230,231,233],"h2",{"id":232},"how-do-i-use-my-own-codebook","How do I use my own codebook?",[150,235,236,237,240,241,244,245,248],{},"Pass ",[153,238,239],{},"codebook"," as text. Each entry maps one character to one codeword. Separate entries with spaces or commas. Use ",[153,242,243],{},"="," or ",[153,246,247],{},":"," between each symbol and its bits.",[150,250,251,252,254],{},"Need a space, comma or ",[153,253,243],{}," as a symbol? Pass a JSON object string instead.",[157,256,258],{"className":159,"code":257,"language":161,"meta":162,"style":162},"encode(\"prefix\", \"a b\", { codebook: '{\"a\":\"0\",\" \":\"10\",\"b\":\"11\"}' });  \u002F\u002F \"01011\"\n",[153,259,260],{"__ignoreMap":162},[166,261,262,264,266,268,270,273,275,278,280],{"class":168,"line":169},[166,263,173],{"class":172},[166,265,177],{"class":176},[166,267,181],{"class":180},[166,269,184],{"class":176},[166,271,272],{"class":180},"\"a b\"",[166,274,190],{"class":176},[166,276,277],{"class":180},"'{\"a\":\"0\",\" \":\"10\",\"b\":\"11\"}'",[166,279,196],{"class":176},[166,281,282],{"class":199},"\u002F\u002F \"01011\"\n",[150,284,285],{},"Codebooks must be prefix-free. No codeword can start another. That means the decoder doesn't need separators between codewords. Each one can run up to 256 bits, which is plenty for any Huffman table you'd want to read by hand.",[150,287,288],{},"A conflicting pair is refused by name. Duplicate codewords are refused too.",[157,290,292],{"className":159,"code":291,"language":161,"meta":162,"style":162},"decode(\"prefix\", \"0\", { codebook: \"A=0 B=01\" });  \u002F\u002F throws: Invalid option codebook=A=0: is not prefix-free: \"A\" (U+0041) = 0 is a prefix of \"B\" (U+0042) = 01\n",[153,293,294],{"__ignoreMap":162},[166,295,296,298,300,302,304,307,309,312,314],{"class":168,"line":169},[166,297,206],{"class":172},[166,299,177],{"class":176},[166,301,181],{"class":180},[166,303,184],{"class":176},[166,305,306],{"class":180},"\"0\"",[166,308,190],{"class":176},[166,310,311],{"class":180},"\"A=0 B=01\"",[166,313,196],{"class":176},[166,315,316],{"class":199},"\u002F\u002F throws: Invalid option codebook=A=0: is not prefix-free: \"A\" (U+0041) = 0 is a prefix of \"B\" (U+0042) = 01\n",[150,318,319],{},"An input symbol also needs its own entry. The error points at the missing one.",[157,321,323],{"className":159,"code":322,"language":161,"meta":162,"style":162},"encode(\"prefix\", \"ABZ\", { codebook: \"A=0 B=10 R=110 C=1110 D=1111\" });  \u002F\u002F throws: prefix: \"Z\" (U+005A) at index 2 has no codeword; add it to the codebook\n",[153,324,325],{"__ignoreMap":162},[166,326,327,329,331,333,335,338,340,342,344],{"class":168,"line":169},[166,328,173],{"class":172},[166,330,177],{"class":176},[166,332,181],{"class":180},[166,334,184],{"class":176},[166,336,337],{"class":180},"\"ABZ\"",[166,339,190],{"class":176},[166,341,193],{"class":180},[166,343,196],{"class":176},[166,345,346],{"class":199},"\u002F\u002F throws: prefix: \"Z\" (U+005A) at index 2 has no codeword; add it to the codebook\n",[230,348,350],{"id":349},"what-does-the-kraft-sum-tell-me","What does the Kraft sum tell me?",[150,352,353],{},"The Kraft sum describes how much of the code tree is occupied. It's returned as an exact fraction.",[157,355,357],{"className":159,"code":356,"language":161,"meta":162,"style":162},"prefix.kraft({ codebook: \"A=0 B=10\" });  \u002F\u002F \"3\u002F4\"\n",[153,358,359],{"__ignoreMap":162},[166,360,361,364,367,370,373,375],{"class":168,"line":169},[166,362,363],{"class":176},"prefix.",[166,365,366],{"class":172},"kraft",[166,368,369],{"class":176},"({ codebook: ",[166,371,372],{"class":180},"\"A=0 B=10\"",[166,374,196],{"class":176},[166,376,377],{"class":199},"\u002F\u002F \"3\u002F4\"\n",[150,379,380,381,384,385,388,389,391],{},"A sum of ",[153,382,383],{},"1"," means the code is complete. A sum of ",[153,386,387],{},"3\u002F4"," leaves free leaves on the tree. Decode details include ",[153,390,366],{}," too.",[230,393,395],{"id":394},"what-happens-to-bits-at-the-end","What happens to bits at the end?",[150,397,398,399,402],{},"Decoding skips ASCII whitespace between bits. An unfinished codeword comes back in ",[153,400,401],{},"details",", not padded or discarded.",[157,404,406],{"className":159,"code":405,"language":161,"meta":162,"style":162},"decode(\"prefix\", \"0101100111\", { codebook: \"A=0 B=10 R=110 C=1110 D=1111\" }).details;  \u002F\u002F { kraft: \"1\", leftover: \"111\", leftoverBits: 3 }\n",[153,407,408],{"__ignoreMap":162},[166,409,410,412,414,416,418,421,423,425,428],{"class":168,"line":169},[166,411,206],{"class":172},[166,413,177],{"class":176},[166,415,181],{"class":180},[166,417,184],{"class":176},[166,419,420],{"class":180},"\"0101100111\"",[166,422,190],{"class":176},[166,424,193],{"class":180},[166,426,427],{"class":176}," }).details;  ",[166,429,430],{"class":199},"\u002F\u002F { kraft: \"1\", leftover: \"111\", leftoverBits: 3 }\n",[150,432,433,434,437,438,441],{},"Here ",[153,435,436],{},"111"," starts a codeword but runs out of tape. ",[153,439,440],{},"leftoverBits"," tells you its length. Keep those bits if more input follows.",[150,443,444],{},"An incomplete code can also encounter bits that start no codeword. That's an error, with the index included.",[157,446,448],{"className":159,"code":447,"language":161,"meta":162,"style":162},"decode(\"prefix\", \"0 11\", { codebook: \"A=0 B=10\" });  \u002F\u002F throws: prefix: bits 11 at index 2 start no codeword\n",[153,449,450],{"__ignoreMap":162},[166,451,452,454,456,458,460,463,465,467,469],{"class":168,"line":169},[166,453,206],{"class":172},[166,455,177],{"class":176},[166,457,181],{"class":180},[166,459,184],{"class":176},[166,461,462],{"class":180},"\"0 11\"",[166,464,190],{"class":176},[166,466,372],{"class":180},[166,468,196],{"class":176},[166,470,471],{"class":199},"\u002F\u002F throws: prefix: bits 11 at index 2 start no codeword\n",[230,473,475],{"id":474},"how-do-i-use-truncated-binary","How do I use truncated binary?",[150,477,478,479,481,482,485,486,489,490,493,494,184,497,184,500,184,503,506,507,509],{},"Set ",[153,480,153],{}," to ",[153,483,484],{},"truncated"," and supply ",[153,487,488],{},"n",". It's the number of symbols and must be at least 2. For ",[153,491,492],{},"n: 5",", the codewords are ",[153,495,496],{},"00",[153,498,499],{},"01",[153,501,502],{},"10",[153,504,505],{},"110"," and ",[153,508,436],{},".",[157,511,513],{"className":159,"code":512,"language":161,"meta":162,"style":162},"encode(\"prefix\", \"0 1 2 3 4\", { code: \"truncated\", n: 5, separate: true });  \u002F\u002F \"00 01 10 110 111\"\ndecode(\"prefix\", \"00110111\", { code: \"truncated\", n: 5 }).bytes;  \u002F\u002F \"0 3 4\"\n",[153,514,515,540],{"__ignoreMap":162},[166,516,517,519,521,523,525,528,531,534,537],{"class":168,"line":169},[166,518,173],{"class":172},[166,520,177],{"class":176},[166,522,181],{"class":180},[166,524,184],{"class":176},[166,526,527],{"class":180},"\"0 1 2 3 4\"",[166,529,530],{"class":176},", { code: ",[166,532,533],{"class":180},"\"truncated\"",[166,535,536],{"class":176},", n: 5, separate: true });  ",[166,538,539],{"class":199},"\u002F\u002F \"00 01 10 110 111\"\n",[166,541,542,544,546,548,550,553,555,557,560],{"class":168,"line":203},[166,543,206],{"class":172},[166,545,177],{"class":176},[166,547,181],{"class":180},[166,549,184],{"class":176},[166,551,552],{"class":180},"\"00110111\"",[166,554,530],{"class":176},[166,556,533],{"class":180},[166,558,559],{"class":176},", n: 5 }).bytes;  ",[166,561,562],{"class":199},"\u002F\u002F \"0 3 4\"\n",[150,564,565,566,569,570,509],{},"Built-in codes use decimal numbers as symbols. Write them separated by spaces, or commas when reading. ",[153,567,568],{},"separate"," adds spaces between encoded codewords. It applies only to encoding and defaults to ",[153,571,572],{},"false",[150,574,575,576,579,580,509],{},"You can inspect the generated table with ",[153,577,578],{},"prefix.codebook({ code: \"truncated\", n: 5 })",". It returns ",[153,581,582],{},"{ \"0\": \"00\", \"1\": \"01\", \"2\": \"10\", \"3\": \"110\", \"4\": \"111\" }",[230,584,586],{"id":585},"how-do-unary-and-elias-gamma-work","How do unary and Elias gamma work?",[150,588,589],{},"Unary writes a number as that many ones followed by a zero. It accepts numbers from 0 through 255, so no codeword runs past 256 bits.",[157,591,593],{"className":159,"code":592,"language":161,"meta":162,"style":162},"encode(\"prefix\", \"0 1 2 5\", { code: \"unary\", separate: true });  \u002F\u002F \"0 10 110 111110\"\ndecode(\"prefix\", \"1110110\", { code: \"unary\" }).bytes;  \u002F\u002F \"3 2\"\n",[153,594,595,619],{"__ignoreMap":162},[166,596,597,599,601,603,605,608,610,613,616],{"class":168,"line":169},[166,598,173],{"class":172},[166,600,177],{"class":176},[166,602,181],{"class":180},[166,604,184],{"class":176},[166,606,607],{"class":180},"\"0 1 2 5\"",[166,609,530],{"class":176},[166,611,612],{"class":180},"\"unary\"",[166,614,615],{"class":176},", separate: true });  ",[166,617,618],{"class":199},"\u002F\u002F \"0 10 110 111110\"\n",[166,620,621,623,625,627,629,632,634,636,638],{"class":168,"line":203},[166,622,206],{"class":172},[166,624,177],{"class":176},[166,626,181],{"class":180},[166,628,184],{"class":176},[166,630,631],{"class":180},"\"1110110\"",[166,633,530],{"class":176},[166,635,612],{"class":180},[166,637,222],{"class":176},[166,639,640],{"class":199},"\u002F\u002F \"3 2\"\n",[150,642,643],{},"Elias gamma starts at 1. Write the number in binary. Prefix it with a zero for each bit after its first.",[157,645,647],{"className":159,"code":646,"language":161,"meta":162,"style":162},"encode(\"prefix\", \"1 2 3 4 17\", { code: \"gamma\", separate: true });  \u002F\u002F \"1 010 011 00100 000010001\"\ndecode(\"prefix\", \"00100011010\", { code: \"gamma\" }).bytes;  \u002F\u002F \"4 3 2\"\nencode(\"prefix\", \"0\", { code: \"gamma\" });  \u002F\u002F throws: prefix: the number 0 at index 0 has no codeword; Elias gamma starts at 1\n",[153,648,649,672,694],{"__ignoreMap":162},[166,650,651,653,655,657,659,662,664,667,669],{"class":168,"line":169},[166,652,173],{"class":172},[166,654,177],{"class":176},[166,656,181],{"class":180},[166,658,184],{"class":176},[166,660,661],{"class":180},"\"1 2 3 4 17\"",[166,663,530],{"class":176},[166,665,666],{"class":180},"\"gamma\"",[166,668,615],{"class":176},[166,670,671],{"class":199},"\u002F\u002F \"1 010 011 00100 000010001\"\n",[166,673,674,676,678,680,682,685,687,689,691],{"class":168,"line":203},[166,675,206],{"class":172},[166,677,177],{"class":176},[166,679,181],{"class":180},[166,681,184],{"class":176},[166,683,684],{"class":180},"\"00100011010\"",[166,686,530],{"class":176},[166,688,666],{"class":180},[166,690,222],{"class":176},[166,692,693],{"class":199},"\u002F\u002F \"4 3 2\"\n",[166,695,697,699,701,703,705,707,709,711,713],{"class":168,"line":696},3,[166,698,173],{"class":172},[166,700,177],{"class":176},[166,702,181],{"class":180},[166,704,184],{"class":176},[166,706,306],{"class":180},[166,708,530],{"class":176},[166,710,666],{"class":180},[166,712,196],{"class":176},[166,714,715],{"class":199},"\u002F\u002F throws: prefix: the number 0 at index 0 has no codeword; Elias gamma starts at 1\n",[230,717,719],{"id":718},"can-identify-find-a-prefix-code","Can identify find a prefix code?",[150,721,722,725,726,728],{},[153,723,724],{},"identify"," never guesses ",[153,727,148],{},". Without a codebook, there's nothing to read. And unary would happily read any bits at all. Great at counting, lousy at guessing.",[230,730,732],{"id":731},"how-do-i-use-aliases-and-the-cli","How do I use aliases and the CLI?",[150,734,735,736,738,739,741,742,506,745,748],{},"The registry name is ",[153,737,148],{},", in the ",[153,740,148],{}," family. ",[153,743,744],{},"huffman",[153,746,747],{},"prefixcode"," are aliases.",[157,750,752],{"className":159,"code":751,"language":161,"meta":162,"style":162},"encode(\"huffman\", \"BAD\", { codebook: \"A=0 B=10 R=110 C=1110 D=1111\" });  \u002F\u002F \"1001111\"\n",[153,753,754],{"__ignoreMap":162},[166,755,756,758,760,763,765,768,770,772,774],{"class":168,"line":169},[166,757,173],{"class":172},[166,759,177],{"class":176},[166,761,762],{"class":180},"\"huffman\"",[166,764,184],{"class":176},[166,766,767],{"class":180},"\"BAD\"",[166,769,190],{"class":176},[166,771,193],{"class":180},[166,773,196],{"class":176},[166,775,776],{"class":199},"\u002F\u002F \"1001111\"\n",[150,778,779,780,783,784,506,786,509],{},"The subpath ",[153,781,782],{},"@agntn\u002Fencodings\u002Fprefix"," exports ",[153,785,148],{},[153,787,788],{},"PREFIX_CODES",[150,790,791,792,184,795,184,798,506,801,804],{},"The CLI accepts ",[153,793,794],{},"--codebook",[153,796,797],{},"--code",[153,799,800],{},"--n",[153,802,803],{},"--separate",". Decoded text goes to stdout. Details go to stderr.",[157,806,810],{"className":807,"code":808,"language":809,"meta":162,"style":162},"language-sh shiki shiki-themes encodings encodings encodings","encodings decode prefix 0101100111 --codebook \"A=0 B=10 R=110 C=1110 D=1111\"\n","sh",[153,811,812],{"__ignoreMap":162},[166,813,814,817,820,823,826,829],{"class":168,"line":169},[166,815,816],{"class":172},"encodings",[166,818,819],{"class":180}," decode",[166,821,822],{"class":180}," prefix",[166,824,825],{"class":180}," 0101100111",[166,827,828],{"class":180}," --codebook",[166,830,831],{"class":180}," \"A=0 B=10 R=110 C=1110 D=1111\"\n",[150,833,834,835,838],{},"This prints ",[153,836,837],{},"ABRA"," on stdout. On stderr:",[157,840,845],{"className":841,"code":843,"language":844,"meta":162},[842],"language-text","kraft: 1\nleftover: 111\nleftoverBits: 3\n","text",[153,846,843],{"__ignoreMap":162},[848,849,850],"style",{},"html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .scIB-, html code.shiki .scIB-{--shiki-light:var(--shiki-token-comment);--shiki-default:var(--shiki-token-comment);--shiki-dark:var(--shiki-token-comment)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":162,"searchDepth":203,"depth":203,"links":852},[853,854,855,856,857,858,859],{"id":232,"depth":203,"text":233},{"id":349,"depth":203,"text":350},{"id":394,"depth":203,"text":395},{"id":474,"depth":203,"text":475},{"id":585,"depth":203,"text":586},{"id":718,"depth":203,"text":719},{"id":731,"depth":203,"text":732},"Encode and decode variable-length prefix codes with custom codebooks, truncated binary, unary and gamma","md",null,{},true,{"title":128,"description":860},"de2PryI-Ih5pcMZabgB1Fn_vNYr1WW68UugZ1Earv6k",[868,870],{"title":124,"path":125,"stem":126,"description":869,"children":-1},"Baudot-Murray teleprinter code in five bits, with the letters and figures shifts handled for you",{"title":132,"path":133,"stem":134,"description":871,"children":-1},"Chess squares as bytes, with a choice of board numbering",1794584243396]