This file is indexed.

/usr/share/gocode/src/github.com/tendermint/go-wire/float.go is in golang-github-tendermint-go-wire-dev 0~20161027~0git287d8ca-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package wire

import (
	"io"
	"math"
)

// Float32

func WriteFloat32(f float32, w io.Writer, n *int, err *error) {
	WriteUint32(math.Float32bits(f), w, n, err)
}

func ReadFloat32(r io.Reader, n *int, err *error) float32 {
	x := ReadUint32(r, n, err)
	return math.Float32frombits(x)
}

// Float64

func WriteFloat64(f float64, w io.Writer, n *int, err *error) {
	WriteUint64(math.Float64bits(f), w, n, err)
}

func ReadFloat64(r io.Reader, n *int, err *error) float64 {
	x := ReadUint64(r, n, err)
	return math.Float64frombits(x)
}