static inline void packet_forward(PACKET *pkt, size_t len)
{
    pkt->curr += len;
    pkt->remaining -= len;
}
['static int test_PACKET_forward(unsigned char buf[BUF_LEN])\n{\n    unsigned char *byte;\n    PACKET pkt;\n    if (       !PACKET_buf_init(&pkt, buf, BUF_LEN)\n            || !PACKET_forward(&pkt, 1)\n            || !PACKET_get_bytes(&pkt, &byte, 1)\n            ||  byte[0] != 4\n            || !PACKET_forward(&pkt, BUF_LEN - 3)\n            || !PACKET_get_bytes(&pkt, &byte, 1)\n            ||  byte[0] != 0xfe) {\n        fprintf(stderr, "test_PACKET_forward() failed\\n");\n        return 0;\n    }\n    return 1;\n}', 'static inline void packet_forward(PACKET *pkt, size_t len)\n{\n    pkt->curr += len;\n    pkt->remaining -= len;\n}']