MCPcopy Create free account
hub / github.com/francoispqt/gojay / AddFloat32

Method AddFloat32

encode_number_float.go:235–237  ·  view source on GitHub ↗

AddFloat32 adds a float32 to be encoded, must be used inside a slice or array encoding (does not encode a key)

(v float32)

Source from the content-addressed store, hash-verified

233
234// AddFloat32 adds a float32 to be encoded, must be used inside a slice or array encoding (does not encode a key)
235func (enc *Encoder) AddFloat32(v float32) {
236 enc.Float32(v)
237}
238
239// AddFloat32OmitEmpty adds an int to be encoded and skips it if its value is 0,
240// must be used inside a slice or array encoding (does not encode a key).

Callers 1

AddInterfaceMethod · 0.95

Calls 1

Float32Method · 0.95

Tested by

no test coverage detected