Sha256: b672620b903ac237a7629c6d1bcd27b75ef0598fff62cf4fe8a18c7977b208d0

Contents?: true

Size: 206 Bytes

Versions: 3

Compression:

Stored size: 206 Bytes

Contents

class Array
  def to_pack_long
    self.each_with_index.inject(0){|s, item| s = s | (item[0] << (56 - (item[1] * 8))); s }
  end
  
  def full_fill(val, len)
    self.fill(val, self.length...len)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastdfs-client-1.2.0 lib/fastdfs-client/extend_core.rb
fastdfs-client-1.0.2 lib/fastdfs-client/extend_core.rb
fastdfs-client-1.0.1 lib/fastdfs-client/extend_core.rb