Skip to content

Commit 4dc3379

Browse files
committed
extra: add internal to {de,in}flate_bytes_ naming to address nit
1 parent b6d3161 commit 4dc3379

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libextra/flate.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static LZ_BEST : c_int = 0xfff; // LZ with 4095 probes, "best"
4646
static TINFL_FLAG_PARSE_ZLIB_HEADER : c_int = 0x1; // parse zlib header and adler32 checksum
4747
static TDEFL_WRITE_ZLIB_HEADER : c_int = 0x01000; // write zlib header and adler32 checksum
4848

49-
fn deflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] {
49+
fn deflate_bytes_internal(bytes: &[u8], flags: c_int) -> ~[u8] {
5050
do bytes.as_imm_buf |b, len| {
5151
unsafe {
5252
let mut outsz : size_t = 0;
@@ -65,14 +65,14 @@ fn deflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] {
6565
}
6666

6767
pub fn deflate_bytes(bytes: &[u8]) -> ~[u8] {
68-
deflate_bytes_(bytes, LZ_NORM)
68+
deflate_bytes_internal(bytes, LZ_NORM)
6969
}
7070

7171
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)
7373
}
7474

75-
fn inflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] {
75+
fn inflate_bytes_internal(bytes: &[u8], flags: c_int) -> ~[u8] {
7676
do bytes.as_imm_buf |b, len| {
7777
unsafe {
7878
let mut outsz : size_t = 0;
@@ -91,11 +91,11 @@ fn inflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] {
9191
}
9292

9393
pub fn inflate_bytes(bytes: &[u8]) -> ~[u8] {
94-
inflate_bytes_(bytes, 0)
94+
inflate_bytes_internal(bytes, 0)
9595
}
9696

9797
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)
9999
}
100100

101101
#[cfg(test)]

0 commit comments

Comments
 (0)