aboutsummaryrefslogtreecommitdiffstats
path: root/varint.h
blob: 782275653c16bbe74163947c903194a29894bc71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Copyright (C) 2007-2008 The Android Open Source Project
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
*/
#include <inttypes.h>

extern char *varint_encode(uint64_t value, char *buf);
extern char *varint_encode_signed(int64_t value, char *buf);