get_unpack(template) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/resolv.rb, line 1588
        def get_unpack(template)
          len = 0
          template.each_byte {|byte|
            byte = "%c" % byte
            case byte
            when cc, CC
              len += 1
            when nn
              len += 2
            when NN
              len += 4
              raise"unsupported template: '#{byte.chr}' in '#{template}'")
          raise"limit exceeded") if @limit < @index + len
          arr = @data.unpack("@#{@index}#{template}")
          @index += len
          return arr
Register or log in to add new notes.