Float64 extracts a float64 value from the Consumer (8 bytes).
()
| 69 | |
| 70 | // Float64 extracts a float64 value from the Consumer (8 bytes). |
| 71 | func (c *Consumer) Float64() float64 { |
| 72 | bits := binary.BigEndian.Uint64(c.take(8)) |
| 73 | return math.Float64frombits(bits) |
| 74 | } |
| 75 | |
| 76 | // String extracts a length-prefixed string from the Consumer. |
| 77 | // Uses a uint16 for the length, limiting strings to 65535 bytes. |