Class: Integer

Inherits:
Object show all
Defined in:
lib/fastdfs-client/extend_core.rb

Instance Method Summary collapse

Instance Method Details

#to_eight_bufferObject



30
31
32
# File 'lib/fastdfs-client/extend_core.rb', line 30

def to_eight_buffer
  8.times.map{|i| (self >> (56 - 8 * i)) & 255}
end