def read(name, chunk_pos = nil, max_chunk_size = 1_000_000)
      name = Base64.decode64(name)

      hnd_data_id = @client.data_id.deserialize(name)
      hnd_r = @client.immutable.get_reader_handle(hnd_data_id)
      contents = if chunk_pos
        @client.immutable.read_data(hnd_r, "bytes=#{chunk_pos}-#{chunk_pos+max_chunk_size}")
      else
        @client.immutable.read_data(hnd_r)
      end
      @client.immutable.drop_reader_handle(hnd_r)
      @client.data_id.drop_handle(hnd_data_id)

      contents
    end
def read(name, chunk_pos = nil, max_chunk_size = 1_000_000)
      name = Base64.decode64(name)

      hnd_data_id = @client.data_id.deserialize(name)
      hnd_r = @client.immutable.get_reader_handle(hnd_data_id)
      contents = if chunk_pos
        @client.immutable.read_data(hnd_r, "bytes=#{chunk_pos}-#{chunk_pos+max_chunk_size}")
      else
        @client.immutable.read_data(hnd_r)
      end
      @client.immutable.drop_reader_handle(hnd_r)
      @client.data_id.drop_handle(hnd_data_id)

      contents
    end
helper