INNER CODE UNIT · C

col_end

Cateners/tiny_container · app/src/main/cpp/tiny_ipp_jni.c:332

static void col_end(buf_t *b) {
    uint8_t tag = IPP_VTAG_ENDCOLLECTION;
    buf_write(b, &tag, 1);
    buf_u16be(b, 0);
    buf_u16be(b, 0);
}

static void col_member_str(buf_t *b, uint8_t vtag, const char *mname, const char *mval) {
    uint8_t mt = IPP_VTAG_MEMBERNAME;
    buf_write(b, &mt, 1);
    buf_u16be(b, 0);
    buf_u16be(b, (uint16_t)strlen(mname));
    buf_write(b, mname, strlen(mname));
    buf_write(b, &vtag, 1);
    buf_u16be(b, 0);
    buf_u16be(b, (uint16_t)strlen(mval));
    buf_write(b, mval, strlen(mval));
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…