@@ -46,7 +46,7 @@ static LZ_BEST : c_int = 0xfff; // LZ with 4095 probes, "best"
46
46
static TINFL_FLAG_PARSE_ZLIB_HEADER : c_int = 0x1 ; // parse zlib header and adler32 checksum
47
47
static TDEFL_WRITE_ZLIB_HEADER : c_int = 0x01000 ; // write zlib header and adler32 checksum
48
48
49
- fn deflate_bytes_ ( bytes : & [ u8 ] , flags : c_int ) -> ~[ u8 ] {
49
+ fn deflate_bytes_internal ( bytes : & [ u8 ] , flags : c_int ) -> ~[ u8 ] {
50
50
do bytes. as_imm_buf |b, len| {
51
51
unsafe {
52
52
let mut outsz : size_t = 0 ;
@@ -65,14 +65,14 @@ fn deflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] {
65
65
}
66
66
67
67
pub fn deflate_bytes ( bytes : & [ u8 ] ) -> ~[ u8 ] {
68
- deflate_bytes_ ( bytes, LZ_NORM )
68
+ deflate_bytes_internal ( bytes, LZ_NORM )
69
69
}
70
70
71
71
pub fn deflate_bytes_zlib ( bytes : & [ u8 ] ) -> ~[ u8 ] {
72
- deflate_bytes_ ( bytes, LZ_NORM | TDEFL_WRITE_ZLIB_HEADER )
72
+ deflate_bytes_internal ( bytes, LZ_NORM | TDEFL_WRITE_ZLIB_HEADER )
73
73
}
74
74
75
- fn inflate_bytes_ ( bytes : & [ u8 ] , flags : c_int ) -> ~[ u8 ] {
75
+ fn inflate_bytes_internal ( bytes : & [ u8 ] , flags : c_int ) -> ~[ u8 ] {
76
76
do bytes. as_imm_buf |b, len| {
77
77
unsafe {
78
78
let mut outsz : size_t = 0 ;
@@ -91,11 +91,11 @@ fn inflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] {
91
91
}
92
92
93
93
pub fn inflate_bytes ( bytes : & [ u8 ] ) -> ~[ u8 ] {
94
- inflate_bytes_ ( bytes, 0 )
94
+ inflate_bytes_internal ( bytes, 0 )
95
95
}
96
96
97
97
pub fn inflate_bytes_zlib ( bytes : & [ u8 ] ) -> ~[ u8 ] {
98
- inflate_bytes_ ( bytes, TINFL_FLAG_PARSE_ZLIB_HEADER )
98
+ inflate_bytes_internal ( bytes, TINFL_FLAG_PARSE_ZLIB_HEADER )
99
99
}
100
100
101
101
#[ cfg( test) ]
0 commit comments