module Bundler::FileUtils::StreamUtils_

def fu_blksize(st) #:nodoc:

:nodoc:
def fu_blksize(st) #:nodoc:
  s = st.blksize
  return nil unless s
  return nil if s == 0
  s
end

def fu_copy_stream0(src, dest, blksize = nil) #:nodoc:

:nodoc:
def fu_copy_stream0(src, dest, blksize = nil)   #:nodoc:
  IO.copy_stream(src, dest)
end

def fu_default_blksize #:nodoc:

:nodoc:
def fu_default_blksize #:nodoc:
  1024
end

def fu_stream_blksize(*streams) #:nodoc:

:nodoc:
def fu_stream_blksize(*streams) #:nodoc:
  streams.each do |s|
    next unless s.respond_to?(:stat)
    size = fu_blksize(s.stat)
    return size if size
  end
  fu_default_blksize()
end

def fu_windows?; true end #:nodoc:

:nodoc:
def fu_windows?; true end #:nodoc:

def fu_windows?; false end #:nodoc:

:nodoc:
def fu_windows?; false end #:nodoc: