Sha256: f3310a1e5c9c41f8f70fad37b10eebfce9e192653a2cf5e4ba6802341ed32f8c
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
module Utils def self.number_to_Buffer(num) 8.times.map{|i| (num >> (56 - 8 * i)) & 255} end def self.array_merge(arr1, arr2) raise "argument must be array" unless arr1.is_a?(Array) || arr2.is_a?(Array) arr2.each_with_index.map{|v, i| arr1[i] = v } arr1 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastdfs-client-0.0.3 | lib/fastdfs-client/utils.rb |
fastdfs-client-0.0.2 | lib/fastdfs-client/utils.rb |