Home | History | Annotate | Download | only in bytestring

Lines Matching refs:cbb

567 static int add_decimal(CBB *out, uint64_t v) {
574 CBB cbb;
575 if (!CBB_init(&cbb, 32)) {
587 if (!CBB_add_bytes(&cbb, (const uint8_t *)"2.", 2) ||
588 !add_decimal(&cbb, v - 80)) {
591 } else if (!add_decimal(&cbb, v / 40) ||
592 !CBB_add_u8(&cbb, '.') ||
593 !add_decimal(&cbb, v % 40)) {
599 !CBB_add_u8(&cbb, '.') ||
600 !add_decimal(&cbb, v)) {
607 if (!CBB_add_u8(&cbb, '\0') ||
608 !CBB_finish(&cbb, &txt, &txt_len)) {
615 CBB_cleanup(&cbb);