Revision 00d7cc0c0b324b1b1c75b97d05423a2dc3af70cf authored by Junio C Hamano on 27 October 2016, 21:58:49 UTC, committed by Junio C Hamano on 27 October 2016, 21:58:49 UTC
The code that we have used for the past 10+ years to cycle
4-element ring buffers turns out to be not quite portable in
theoretical world.

* rs/ring-buffer-wraparound:
  hex: make wraparound of the index into ring-buffer explicit
2 parent s 65aaa29 + bb84735
Raw File
varint.h
#ifndef VARINT_H
#define VARINT_H

extern int encode_varint(uintmax_t, unsigned char *);
extern uintmax_t decode_varint(const unsigned char **);

#endif /* VARINT_H */
back to top