(r binary.Reader)
| 114 | } |
| 115 | |
| 116 | func (c *xmlTree) decodeString(r binary.Reader) stringPoolRef { |
| 117 | idx := r.Uint32() |
| 118 | if idx != missingString { |
| 119 | return stringPoolRef{c.strings, idx} |
| 120 | } |
| 121 | return stringPoolRef{nil, idx} |
| 122 | |
| 123 | } |
| 124 | |
| 125 | // ensureAttributeMapsToResource finds a name mapping to the given resource id. |
| 126 | // If such a name does not exist, it is added to the string pool after the last |