unsigned long get_checksum(ByteIOContext *s){

    s->checksum= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_ptr - s->checksum_ptr);

    s->checksum_ptr= NULL;

    return s->checksum;

}

unsigned long get_checksum(ByteIOContext *s){

    s->checksum= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_ptr - s->checksum_ptr);

    s->checksum_ptr= NULL;

    return s->checksum;

}

unsigned long FUNC_0(ByteIOContext *VAR_0){

    VAR_0->checksum= VAR_0->update_checksum(VAR_0->checksum, VAR_0->checksum_ptr, VAR_0->buf_ptr - VAR_0->checksum_ptr);

    VAR_0->checksum_ptr= NULL;

    return VAR_0->checksum;

}

unsigned long FUNC_0(ByteIOContext *VAR_0){ VAR_0->checksum= VAR_0->update_checksum(VAR_0->checksum, VAR_0->checksum_ptr, VAR_0->buf_ptr - VAR_0->checksum_ptr); VAR_0->checksum_ptr= NULL; return VAR_0->checksum; }