gems/pending/disk/modules/AzureBlobDisk.rb
# The maximum read length that supports MD5 return.
The maximum read length that supports MD5 return.
The maximum read length that supports MD5 return .
def d_read(pos, len)
    return blob_read(pos, len) unless len > MAX_READ_LEN
    ret = ""
    bytes_read = 0
    blocks, rem = len.divmod(MAX_READ_LEN)
    blocks.times do
      ret << blob_read(pos, MAX_READ_LEN)
      bytes_read += MAX_READ_LEN
    end
    ret << blob_read(pos, rem) if rem > 0
    ret
  end
def d_read ( pos , len ) return blob_read ( pos , len ) unless len > MAX_READ_LEN ret = "" bytes_read = 0 blocks , rem = len . divmod ( MAX_READ_LEN ) blocks . times do ret << blob_read ( pos , MAX_READ_LEN ) bytes_read += MAX_READ_LEN end ret << blob_read ( pos , rem ) if rem > 0 ret end
The maximum read length that supports MD5 return.
The maximum read length that supports MD5 return .
# puts "AzureBlobDisk#d_read(#{pos}, #{len})"
pos
<not_specific>
len
<not_specific>