(id uint16)
| 209 | } |
| 210 | |
| 211 | func (enc *encoder) attrForID(id uint16) string { |
| 212 | // For now we are not returning error from here. |
| 213 | if id == 0 || id >= uint16(len(enc.idSlice)) { |
| 214 | return "" |
| 215 | } |
| 216 | |
| 217 | return enc.idSlice[id] |
| 218 | } |
| 219 | |
| 220 | // makeScalarNode returns a fastJsonNode with all of its meta data, scalarVal populated. |
| 221 | func (enc *encoder) makeScalarNode(attr uint16, val []byte, list bool) (fastJsonNode, error) { |
no outgoing calls
no test coverage detected