MCPcopy Index your code
hub / github.com/coder/slog / writeUnsignedInt

Function writeUnsignedInt

internal/entryhuman/entry.go:123–127  ·  view source on GitHub ↗
(w io.Writer, n uint64)

Source from the content-addressed store, hash-verified

121}
122
123func 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.

Callers 1

writeValueFastFunction · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected