]> git.proxmox.com Git - libgit2.git/blame - src/varint.h
treebuilder: fix memory leaks in `write_with_buffer`
[libgit2.git] / src / varint.h
CommitLineData
aeb5ee5a
DT
1/*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7#ifndef INCLUDE_varint_h__
8#define INCLUDE_varint_h__
9
10#include <stdint.h>
11
12extern int git_encode_varint(unsigned char *, size_t, uintmax_t);
13extern uintmax_t git_decode_varint(const unsigned char *, size_t *);
14
15#endif