ReadDouble
()
| 920 | |
| 921 | // ReadDouble |
| 922 | func (p *BinaryProtocol) ReadDouble() (float64, error) { |
| 923 | value, n := protowire.BinaryDecoder{}.DecodeFixed64((p.Buf)[p.Read:]) |
| 924 | if n < 0 { |
| 925 | return math.Float64frombits(value), errDecodeField |
| 926 | } |
| 927 | _, err := p.next(n) |
| 928 | return math.Float64frombits(value), err |
| 929 | } |
| 930 | |
| 931 | // ReadBytes return bytesData and the sum length of L、V in TLV |
| 932 | func (p *BinaryProtocol) ReadBytes() ([]byte, error) { |
no test coverage detected