MCPcopy
hub / github.com/rs/zerolog / Ints16

Method Ints16

event.go:581–587  ·  view source on GitHub ↗

Ints16 adds the field key with i as a []int16 to the *Event context.

(key string, i []int16)

Source from the content-addressed store, hash-verified

579
580// Ints16 adds the field key with i as a []int16 to the *Event context.
581func (e *Event) Ints16(key string, i []int16) *Event {
582 if e == nil {
583 return e
584 }
585 e.buf = enc.AppendInts16(enc.AppendKey(e.buf, key), i)
586 return e
587}
588
589// Int32 adds the field key with i as a int32 to the *Event context.
590func (e *Event) Int32(key string, i int32) *Event {

Callers 6

TestEvent_WithNilEventFunction · 0.95
TestWithPluralsFunction · 0.45
TestFieldsArrayNilFunction · 0.45
TestFieldsArrayEmptyFunction · 0.45

Calls 2

AppendInts16Method · 0.65
AppendKeyMethod · 0.65

Tested by 6

TestEvent_WithNilEventFunction · 0.76
TestWithPluralsFunction · 0.36
TestFieldsArrayNilFunction · 0.36
TestFieldsArrayEmptyFunction · 0.36