(start xml.StartElement, data []byte, source *Source)
| 171 | } |
| 172 | |
| 173 | func (d *Decoder) decNameArray(start xml.StartElement, data []byte, source *Source) error { |
| 174 | |
| 175 | narray := new(NameArray) |
| 176 | narray.Id = findAttrib(start, "id").Value |
| 177 | narray.Count, _ = strconv.Atoi(findAttrib(start, "count").Value) |
| 178 | source.ArrayElement = narray |
| 179 | |
| 180 | // Allocates memory for array |
| 181 | narray.Data = make([]string, narray.Count, narray.Count) |
| 182 | |
| 183 | // Reads the strings from the data |
| 184 | err := decStringSequence(data, narray.Data) |
| 185 | if err != nil { |
| 186 | return err |
| 187 | } |
| 188 | return nil |
| 189 | } |
| 190 | |
| 191 | func (d *Decoder) decSourceTechniqueCommon(start xml.StartElement, source *Source) error { |
| 192 |
no test coverage detected