note output has reference of input `program`
(program []byte)
| 355 | |
| 356 | // note output has reference of input `program` |
| 357 | func GetParamInfo(program []byte) ([][]byte, error) { |
| 358 | parser := programParser{source: common.NewZeroCopySource(program)} |
| 359 | |
| 360 | var signatures [][]byte |
| 361 | for parser.IsEOF() == false { |
| 362 | sig, err := parser.ReadBytes() |
| 363 | if err != nil { |
| 364 | return nil, err |
| 365 | } |
| 366 | signatures = append(signatures, sig) |
| 367 | } |
| 368 | |
| 369 | return signatures, nil |
| 370 | } |
no test coverage detected