ReadVarint
()
| 860 | |
| 861 | // ReadVarint |
| 862 | func (p *BinaryProtocol) ReadVarint() (uint64, error) { |
| 863 | value, n := protowire.BinaryDecoder{}.DecodeUint64((p.Buf)[p.Read:]) |
| 864 | if n < 0 { |
| 865 | return value, errDecodeField |
| 866 | } |
| 867 | _, err := p.next(n) |
| 868 | return value, err |
| 869 | } |
| 870 | |
| 871 | // ReadFixed32 |
| 872 | func (p *BinaryProtocol) ReadFixed32() (int32, error) { |
no test coverage detected