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

Method DecodeFloat64

decode_number_float.go:6–11  ·  view source on GitHub ↗

DecodeFloat64 reads the next JSON-encoded value from the decoder's input (io.Reader) and stores it in the float64 pointed to by v. See the documentation for Unmarshal for details about the conversion of JSON into a Go value.

(v *float64)

Source from the content-addressed store, hash-verified

4//
5// See the documentation for Unmarshal for details about the conversion of JSON into a Go value.
6func (dec *Decoder) DecodeFloat64(v *float64) error {
7 if dec.isPooled == 1 {
8 panic(InvalidUsagePooledDecoderError("Invalid usage of pooled decoder"))
9 }
10 return dec.decodeFloat64(v)
11}
12func (dec *Decoder) decodeFloat64(v *float64) error {
13 for ; dec.cursor < dec.length || dec.read(); dec.cursor++ {
14 switch c := dec.data[dec.cursor]; c {

Callers 1

TestDecoderFloat64Function · 0.95

Calls 2

decodeFloat64Method · 0.95

Tested by 1

TestDecoderFloat64Function · 0.76