Permalink
Browse files

Make some Zlib::ZStream methods private

These methods should't be public, there are more methods that shouldn't
be public but they need more work or is not currently possible.
  • Loading branch information...
1 parent ba8c832 commit ec8ad1ee40498083c0d6697f7a869aaadd0ee759 @IPGlider IPGlider committed May 19, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/zlib.rb.ffi
View
@@ -408,6 +408,8 @@ module Zlib
self[:avail_out] = @next_out.total
end
+ private :expand_output
+
##
# Finishes the stream and flushes output buffer. See Zlib::Deflate#finish
# and Zlib::Inflate#finish for details of this behavior.
@@ -460,6 +462,8 @@ module Zlib
@flags & IN_STREAM == IN_STREAM
end
+ private :in_stream?
+
def input_empty?
@input.nil? or @input.empty?
end
@@ -475,6 +479,8 @@ module Zlib
@flags |= READY
end
+ private :ready
+
def ready?
@flags & READY == READY
end
@@ -497,6 +503,8 @@ module Zlib
@input = nil
end
+ private :reset_input
+
def run(data, flush)
if @input.nil? and data.empty? then
data_in = FFI::MemoryPointer.new 1

0 comments on commit ec8ad1e

Please sign in to comment.