(fj fastJsonNode, attr uint16)
| 308 | } |
| 309 | |
| 310 | func (enc *encoder) setAttr(fj fastJsonNode, attr uint16) { |
| 311 | // There can be some cases where we change name of attr for fastJsoNode and |
| 312 | // hence first clear the existing attr, then store new one. |
| 313 | fj.meta &= unsetBytes76 |
| 314 | fj.meta |= (uint64(attr) << 40) |
| 315 | } |
| 316 | |
| 317 | func (enc *encoder) setScalarVal(fj fastJsonNode, sv []byte) error { |
| 318 | offset, err := enc.arena.put(sv) |
no outgoing calls
no test coverage detected