forked from facebookarchive/fb-adb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adbenc.h
26 lines (23 loc) · 807 Bytes
/
adbenc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in
* the LICENSE file in the root directory of this source tree. An
* additional grant of patent rights can be found in the PATENTS file
* in the same directory.
*
*/
#pragma once
void adb_encode(unsigned* inout_state,
char** inout_enc,
char* encend,
const char** inout_in,
const char* inend);
void adb_decode(unsigned* inout_state,
char** inout_dec,
char* decend,
const char** inout_in,
const char* inend);
size_t read_all_adb_encoded(int fd, void* buf, size_t sz);
void write_all_adb_encoded(int fd, const void* buf, size_t sz);