MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetParamInfo

Function GetParamInfo

core/program/program.go:357–370  ·  view source on GitHub ↗

note output has reference of input `program`

(program []byte)

Source from the content-addressed store, hash-verified

355
356// note output has reference of input `program`
357func 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}

Callers 1

GetSigMethod · 0.92

Calls 3

IsEOFMethod · 0.95
ReadBytesMethod · 0.95
NewZeroCopySourceFunction · 0.92

Tested by

no test coverage detected