(max uint32)
| 122 | } |
| 123 | |
| 124 | func (r *VmReader) ReadVarBytes(max uint32) ([]byte, error) { |
| 125 | n, err := r.ReadVarInt(uint64(max)) |
| 126 | if err != nil { |
| 127 | return nil, err |
| 128 | } |
| 129 | return r.ReadBytes(int(n)) |
| 130 | } |
| 131 | |
| 132 | func (r *VmReader) ReadVarInt(max uint64) (uint64, error) { |
| 133 | fb, _ := r.ReadByte() |
no test coverage detected