(w io.Writer, n uint64)
| 121 | } |
| 122 | |
| 123 | func writeUnsignedInt(w io.Writer, n uint64) (bool, error) { |
| 124 | var a [20]byte |
| 125 | _, err := w.Write(strconv.AppendUint(a[:0], n, 10)) |
| 126 | return true, err |
| 127 | } |
| 128 | |
| 129 | // Optimization to avoid allocation of heap allocations/temporary strings via formatValue when dealing with primitive types. |
| 130 | // It returns (handled, error). When handled is false, the caller should fall back to formatValue. |