void init_checksum(ByteIOContext *s, unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum){

    s->update_checksum= update_checksum;

    s->checksum= s->update_checksum(checksum, NULL, 0);

    s->checksum_ptr= s->buf_ptr;

}

void init_checksum(ByteIOContext *s, unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum){

    s->update_checksum= update_checksum;

    s->checksum= s->update_checksum(checksum, NULL, 0);

    s->checksum_ptr= s->buf_ptr;

}

void FUNC_0(ByteIOContext *VAR_0, unsigned long (*VAR_1)(unsigned long VAR_2, const uint8_t *VAR_3, unsigned int VAR_4), unsigned long VAR_5){

    VAR_0->VAR_1= VAR_1;

    VAR_0->VAR_5= VAR_0->VAR_1(VAR_5, NULL, 0);

    VAR_0->checksum_ptr= VAR_0->buf_ptr;

}

void FUNC_0(ByteIOContext *VAR_0, unsigned long (*VAR_1)(unsigned long VAR_2, const uint8_t *VAR_3, unsigned int VAR_4), unsigned long VAR_5){ VAR_0->VAR_1= VAR_1; VAR_0->VAR_5= VAR_0->VAR_1(VAR_5, NULL, 0); VAR_0->checksum_ptr= VAR_0->buf_ptr; }