You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: layer_raw.rb
    path of file: ./repos/psd.rb/lib/psd/image_formats
    
    the code of the file until where you have to start completion: class PSD
  module ImageFormat
    module LayerRAW
      private

      # Since we're parsing on a per-channel basis, we need to modify the behavior
      # of the RAW encoding parser a bit. This version is aware of the
    
      def parse_raw!
        PSD.logger.debug "Attempting to parse RAW encoded channel..."

        (@chan_pos...(@chan_pos + @ch_info[:length] - 2)).each do |i|
          @channel_data[i] = @file.read(1).bytes.to_a[0]
        end

        @chan_pos += @ch_info[:length] - 2
      end