cabi.c
static int putsplen(int len)
{
	int blen = 1; // how bits needed to encode length
	while ((1 << blen) <= len)
		blen += 2;
	// write number of bits (1-terminated string of zeroes)
	putval(0,(blen-1)/2);
	putval(1,1);          // terminator
	// write length
	putval(len, blen);
}
// write a span length
// a string of bits encoding the number of bits needed to encode the length,
// and then the length.
write a span length
a string of bits encoding the number of bits needed to encode the length,
and then the length.
write a span length a string of bits encoding the number of bits needed to encode the length and then the length .
static int putsplen(int len)
{
	int blen = 1; 
	while ((1 << blen) <= len)
		blen += 2;
	putval(0,(blen-1)/2);
	putval(1,1);          
	putval(len, blen);
}
static int putsplen ( int len ) { int blen = 1 ; while ( ( 1 << blen ) <= len ) blen += 2 ; putval ( 0 , ( blen - 1 ) / 2 ) ; putval ( 1 , 1 ) ; putval ( len , blen ) ; }
write a span length
a string of bits encoding the number of bits needed to encode the length,
and then the length.
write a span length a string of bits encoding the number of bits needed to encode the length and then the length .
// how bits needed to encode length // write number of bits (1-terminated string of zeroes) // terminator // write length