lib/oci/object_storage/transfer/multipart/internal/stdin_part_io_wrapper.rb
def read(part_size)
              @lock.synchronize do
                read_content = @source.read(part_size)
                if read_content
                  @part_number += 1
                  { content: read_content, part_number: @part_number }
                end
              end
            end
# Reads bytes from $stdin. This is synchronised so that only a single thread can
# perform this operation at any one time.
#
# @param [Integer] part_size The number of bytes to read from $stdin
#
# @return [Hash] A hash with two keys. The :content key will contain the content we read from $stdin
# and the :part_number key will contain the part number we will assign to the part when we upload it as
# part of a multipart upload. If there is no more data from $stdin then this method will return nil.
Reads bytes from $stdin. This is synchronised so that only a single thread can
perform this operation at any one time.
Reads bytes from $stdin . This is synchronised so that only a single thread can perform this operation at any one time .
def read(part_size)
              @lock.synchronize do
                read_content = @source.read(part_size)
                if read_content
                  @part_number += 1
                  { content: read_content, part_number: @part_number }
                end
              end
            end
def read ( part_size ) @lock . synchronize do read_content = @source . read ( part_size ) if read_content @part_number += 1 { content : read_content , part_number : @part_number } end end end
Reads bytes from $stdin.
Reads bytes from $stdin .
A hash with two keys. The :content key will contain the content we read from $stdin and the :part_number key will contain the part number we will assign to the part when we upload it as part of a multipart upload. If there is no more data from $stdin then this method will return nil.
A hash with two keys . The : content key will contain the content we read from $stdin and the : part_number key will contain the part number we will assign to the part when we upload it as part of a multipart upload . If there is no more data from $stdin then this method will return nil .
Hash
part_size
part_size The number of bytes to read from $stdin
part_size The number of bytes to read from $stdin