code: func GetChainLines(table Table, save []byte) map[Chain][]byte {
  	chainsMap := make(map[Chain][]byte)
  	tablePrefix := []byte("*" + string(table))
  	readIndex := 0
  	// find beginning of table
  	for readIndex < len(save) {
  		line, n := readLine(readIndex, save)
  		readIndex = n
  		if bytes.HasPrefix(line, tablePrefix) {
  			break
  		}
  	}
  	// parse table lines
  	for readIndex < len(save) {
  		line, n := readLine(readIndex, save)
  		readIndex = n
  		if len(line) == 0 {
  			continue
  		}
  		if bytes.HasPrefix(line, commitBytes) || line[0] == '*' {
  			break
  		} else if line[0] == '#' {
  			continue
  		} else if line[0] == ':' && len(line) > 1 {
  			// We assume that the <line> contains space - chain lines have 3 fields,
  			// space delimited. If there is no space, this line will panic.
  			chain := Chain(line[1:bytes.Index(line, spaceBytes)])
  			chainsMap[chain] = line
  		}
  	}
  	return chainsMap
  }
docs: // GetChainLines parses a table's iptables-save data to find chains in the table.
  // It returns a map of iptables.Chain to []byte where the []byte is the chain line
  // from save (with counters etc.).
  // Note that to avoid allocations memory is SHARED with save.