lib/oci/object_storage/transfer/multipart/internal/seekable_non_file_part_io_wrapper.rb
def read(offset, part_size)
              @lock.synchronize do
                @source.seek(offset)
                @source.read(part_size)
              end
            end
# Reads a part/segment from the IO-like object by seeking to a given location and then
# reading a given number of bytes. This is synchronised so that only a single thread can
# perform this operation at any one time.
#
# @param [Integer] offset the zero-based position in the IO-like object where we'll start reading from
# @param [Integer] part_size the number of bytes to read
#
# @return [String] The content read from the IO-like object
Reads a part/segment from the IO-like object by seeking to a given location and then
reading a given number of bytes. This is synchronised so that only a single thread can
perform this operation at any one time.
Reads a part / segment from the IO - like object by seeking to a given location and then reading a given number of bytes . This is synchronised so that only a single thread can perform this operation at any one time .
def read(offset, part_size)
              @lock.synchronize do
                @source.seek(offset)
                @source.read(part_size)
              end
            end
def read ( offset , part_size ) @lock . synchronize do @source . seek ( offset ) @source . read ( part_size ) end end
Reads a part/segment from the IO-like object by seeking to a given location and then
reading a given number of bytes.
Reads a part / segment from the IO - like object by seeking to a given location and then reading a given number of bytes .
The content read from the IO-like object
The content read from the IO - like object
String
offset
part_size
part_size the number of bytes to read
part_size the number of bytes to read