diff options
| author | darkf <lw9k123@gmail.com> | 2013-08-05 06:06:43 -0700 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-08-07 22:41:13 -0400 |
| commit | cc160a00285b2856610b31004eee7704ca0806d1 (patch) | |
| tree | 0c980ac893792eace9494c80a26383578e3b0997 | |
| parent | dd5e8b218fb7a6f45beca1cddb0c19949307ea3d (diff) | |
| download | rust-cc160a00285b2856610b31004eee7704ca0806d1.tar.gz rust-cc160a00285b2856610b31004eee7704ca0806d1.zip | |
extra: add `internal` to {de,in}flate_bytes_ naming to address nit
| -rw-r--r-- | src/libextra/flate.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libextra/flate.rs b/src/libextra/flate.rs index c974148ee12..ed8cbcd0663 100644 --- a/src/libextra/flate.rs +++ b/src/libextra/flate.rs @@ -46,7 +46,7 @@ static LZ_BEST : c_int = 0xfff; // LZ with 4095 probes, "best" static TINFL_FLAG_PARSE_ZLIB_HEADER : c_int = 0x1; // parse zlib header and adler32 checksum static TDEFL_WRITE_ZLIB_HEADER : c_int = 0x01000; // write zlib header and adler32 checksum -fn deflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] { +fn deflate_bytes_internal(bytes: &[u8], flags: c_int) -> ~[u8] { do bytes.as_imm_buf |b, len| { unsafe { let mut outsz : size_t = 0; @@ -65,14 +65,14 @@ fn deflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] { } pub fn deflate_bytes(bytes: &[u8]) -> ~[u8] { - deflate_bytes_(bytes, LZ_NORM) + deflate_bytes_internal(bytes, LZ_NORM) } pub fn deflate_bytes_zlib(bytes: &[u8]) -> ~[u8] { - deflate_bytes_(bytes, LZ_NORM | TDEFL_WRITE_ZLIB_HEADER) + deflate_bytes_internal(bytes, LZ_NORM | TDEFL_WRITE_ZLIB_HEADER) } -fn inflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] { +fn inflate_bytes_internal(bytes: &[u8], flags: c_int) -> ~[u8] { do bytes.as_imm_buf |b, len| { unsafe { let mut outsz : size_t = 0; @@ -91,11 +91,11 @@ fn inflate_bytes_(bytes: &[u8], flags: c_int) -> ~[u8] { } pub fn inflate_bytes(bytes: &[u8]) -> ~[u8] { - inflate_bytes_(bytes, 0) + inflate_bytes_internal(bytes, 0) } pub fn inflate_bytes_zlib(bytes: &[u8]) -> ~[u8] { - inflate_bytes_(bytes, TINFL_FLAG_PARSE_ZLIB_HEADER) + inflate_bytes_internal(bytes, TINFL_FLAG_PARSE_ZLIB_HEADER) } #[cfg(test)] |
