def parse(str, offset=0)
      if @active and str.size >= offset + @size
        @value = str[offset, @size].unpack("v")[0]
        @size
      else